aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-03-04 17:00:56 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-03-04 17:00:56 +0100
commit86d9f60f3acc4a5d755912003278267f8e6f3e89 (patch)
tree96b56bd4c2943b461a5d55f7f33da4d18a9ee589 /networking/udhcp/dhcpc.c
parentaee7cd82be31577c2e5c144d083af206bedbb96a (diff)
downloadbusybox-w32-86d9f60f3acc4a5d755912003278267f8e6f3e89.tar.gz
busybox-w32-86d9f60f3acc4a5d755912003278267f8e6f3e89.tar.bz2
busybox-w32-86d9f60f3acc4a5d755912003278267f8e6f3e89.zip
udhcpc: do not use -t NUM for counting "select" packets, use 3
Otherwise, "-t 0" usage may end up sending them forever if server does not respond. function old new delta udhcpc_main 2846 2836 -10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 6c2b112f0..dfd5ca606 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1501,7 +1501,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1501 packet_num = 0; 1501 packet_num = 0;
1502 continue; 1502 continue;
1503 case REQUESTING: 1503 case REQUESTING:
1504 if (!discover_retries || packet_num < discover_retries) { 1504 if (packet_num < 3) {
1505 /* send broadcast select packet */ 1505 /* send broadcast select packet */
1506 send_select(xid, server_addr, requested_ip); 1506 send_select(xid, server_addr, requested_ip);
1507 timeout = discover_timeout; 1507 timeout = discover_timeout;