aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-11 14:40:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-11 14:40:00 +0000
commita19e64933c600b7f05232ad80bb5db85c115e42d (patch)
treebb832b3fc677066c155b19eaccea085298b1b718 /networking/udhcp
parent4774179cb9e04030485773adf2b7b1055a10faeb (diff)
downloadbusybox-w32-a19e64933c600b7f05232ad80bb5db85c115e42d.tar.gz
busybox-w32-a19e64933c600b7f05232ad80bb5db85c115e42d.tar.bz2
busybox-w32-a19e64933c600b7f05232ad80bb5db85c115e42d.zip
docs/logging_and_backgrounding.txt: new mini-doc
dnsd: remove statics, remove nerly-useless SIGINT handler crond: correct more of logfile to 0666 (as usual, umask allows user to remove unwanted bits). nameif: print errors to stderr too, not just to syslog function old new delta udhcp_read_interface 308 306 -2 ttl 4 - -4 fileconf 4 - -4 dnsentry 4 - -4 interrupt 19 - -19 dnsd_main 1463 1394 -69 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 0/2 up/down: 0/-102) Total: -102 bytes text data bss dec hex filename 808161 476 7864 816501 c7575 busybox_old 807994 468 7856 816318 c74be busybox_unstripped
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/dhcpc.c2
-rw-r--r--networking/udhcp/dhcpd.c4
-rw-r--r--networking/udhcp/socket.c2
3 files changed, 3 insertions, 5 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 903f3d326..e9f99e39c 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -280,7 +280,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
280 /* on NOMMU reexec (i.e., background) early */ 280 /* on NOMMU reexec (i.e., background) early */
281 if (!(opt & OPT_f)) { 281 if (!(opt & OPT_f)) {
282 bb_daemonize_or_rexec(0 /* flags */, argv); 282 bb_daemonize_or_rexec(0 /* flags */, argv);
283 logmode = 0; 283 logmode = LOGMODE_NONE;
284 } 284 }
285#endif 285#endif
286 if (opt & OPT_S) { 286 if (opt & OPT_S) {
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 15b31eb3d..a82fd8c47 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -46,12 +46,10 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv)
46 46
47 opt = getopt32(argv, "fS" USE_FEATURE_UDHCP_PORT("P:", &str_P)); 47 opt = getopt32(argv, "fS" USE_FEATURE_UDHCP_PORT("P:", &str_P));
48 argv += optind; 48 argv += optind;
49
50 if (!(opt & 1)) { /* no -f */ 49 if (!(opt & 1)) { /* no -f */
51 bb_daemonize_or_rexec(0, argv); 50 bb_daemonize_or_rexec(0, argv);
52 logmode &= ~LOGMODE_STDIO; 51 logmode = LOGMODE_NONE;
53 } 52 }
54
55 if (opt & 2) { /* -S */ 53 if (opt & 2) { /* -S */
56 openlog(applet_name, LOG_PID, LOG_DAEMON); 54 openlog(applet_name, LOG_PID, LOG_DAEMON);
57 logmode |= LOGMODE_SYSLOG; 55 logmode |= LOGMODE_SYSLOG;
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index fdb558db4..edf4355b5 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -57,7 +57,7 @@ int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t
57 } 57 }
58 our_ip = (struct sockaddr_in *) &ifr.ifr_addr; 58 our_ip = (struct sockaddr_in *) &ifr.ifr_addr;
59 *addr = our_ip->sin_addr.s_addr; 59 *addr = our_ip->sin_addr.s_addr;
60 DEBUG("%s (our ip) = %s", ifr.ifr_name, inet_ntoa(our_ip->sin_addr)); 60 DEBUG("ip of %s = %s", interface, inet_ntoa(our_ip->sin_addr));
61 } 61 }
62 62
63 if (ifindex) { 63 if (ifindex) {