diff options
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r-- | networking/dnsd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c index 0a5278377..b269bc52a 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c | |||
@@ -321,15 +321,15 @@ static int process_packet(uint8_t * buf) | |||
321 | /* | 321 | /* |
322 | * Exit on signal | 322 | * Exit on signal |
323 | */ | 323 | */ |
324 | static void interrupt(int x) | 324 | static void interrupt(int sig) |
325 | { | 325 | { |
326 | /* unlink("/var/run/dnsd.lock"); */ | 326 | /* unlink("/var/run/dnsd.lock"); */ |
327 | bb_error_msg("interrupt, exiting\n"); | 327 | bb_error_msg("interrupt, exiting\n"); |
328 | exit(2); | 328 | kill_myself_with_sig(sig); |
329 | } | 329 | } |
330 | 330 | ||
331 | int dnsd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 331 | int dnsd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
332 | int dnsd_main(int argc, char **argv) | 332 | int dnsd_main(int argc ATTRIBUTE_UNUSED, char **argv) |
333 | { | 333 | { |
334 | const char *listen_interface = "0.0.0.0"; | 334 | const char *listen_interface = "0.0.0.0"; |
335 | char *sttl, *sport; | 335 | char *sttl, *sport; |
@@ -387,6 +387,9 @@ int dnsd_main(int argc, char **argv) | |||
387 | // Or else we can exhibit usual UDP ugliness: | 387 | // Or else we can exhibit usual UDP ugliness: |
388 | // [ip1.multihomed.ip2] <= query to ip1 <= peer | 388 | // [ip1.multihomed.ip2] <= query to ip1 <= peer |
389 | // [ip1.multihomed.ip2] => reply from ip2 => peer (confused) | 389 | // [ip1.multihomed.ip2] => reply from ip2 => peer (confused) |
390 | |||
391 | // TODO: recv_from_to | ||
392 | |||
390 | r = recvfrom(udps, buf, sizeof(buf), 0, &lsa->u.sa, &fromlen); | 393 | r = recvfrom(udps, buf, sizeof(buf), 0, &lsa->u.sa, &fromlen); |
391 | if (OPT_verbose) | 394 | if (OPT_verbose) |
392 | bb_info_msg("Got UDP packet"); | 395 | bb_info_msg("Got UDP packet"); |