aboutsummaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-02 13:04:19 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-02 13:04:19 +0000
commit2e4c3c4cc3c2f6bdd3bfbafe9980f46b24971009 (patch)
treee7e729631b8b8150cb25349534ae16c2d7f12562 /networking/ifupdown.c
parent0edbdd8ac8c0add7902d73a7ef921abba9f5752a (diff)
downloadbusybox-w32-2e4c3c4cc3c2f6bdd3bfbafe9980f46b24971009.tar.gz
busybox-w32-2e4c3c4cc3c2f6bdd3bfbafe9980f46b24971009.tar.bz2
busybox-w32-2e4c3c4cc3c2f6bdd3bfbafe9980f46b24971009.zip
udhcpc: add -o "do not request options by default" switch
(by L. Gabriel Somlo <somlo AT cmu.edu>) function old new delta udhcpc_main 2513 2554 +41 static.udhcpc_longopts 226 247 +21 add_param_req_option 119 132 +13 packed_usage 23952 23964 +12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 87/0) Total: 87 bytes
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r--networking/ifupdown.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 7c31448e8..50b96261b 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -476,7 +476,8 @@ static const struct dhcp_client_t ext_dhcp_clients[] = {
476 "pump -i %iface% -k", 476 "pump -i %iface% -k",
477 }, 477 },
478 { "udhcpc", 478 { "udhcpc",
479 "udhcpc -R -n -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]][[ -t %retries%]]", 479 "udhcpc -R -n -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %clientid%]]"
480 "[[ -s %script%]][[ %udhcpc_opts%]]",
480 "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", 481 "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null",
481 }, 482 },
482}; 483};
@@ -507,7 +508,7 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
507 return 0; 508 return 0;
508#endif 509#endif
509 return execute("udhcpc -R -n -p /var/run/udhcpc.%iface%.pid " 510 return execute("udhcpc -R -n -p /var/run/udhcpc.%iface%.pid "
510 "-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]][[ -t %retries%]]", 511 "-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]][[ %udhcpc_opts%]]",
511 ifd, exec); 512 ifd, exec);
512} 513}
513#else 514#else