projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aee7cd8
)
udhcpc: do not use -t NUM for counting "select" packets, use 3
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 4 Mar 2016 16:00:56 +0000
(17:00 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 4 Mar 2016 16:00:56 +0000
(17:00 +0100)
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>
networking/udhcp/dhcpc.c
patch
|
blob
|
history
diff --git
a/networking/udhcp/dhcpc.c
b/networking/udhcp/dhcpc.c
index 6c2b112f0dc5bb36fd6c907994f24bd4d678cb42..dfd5ca6061aa8519748667ce9e6848e58f415d88 100644
(file)
--- a/
networking/udhcp/dhcpc.c
+++ b/
networking/udhcp/dhcpc.c
@@
-1501,7
+1501,7
@@
int udhcpc_main(int argc UNUSED_PARAM, char **argv)
packet_num = 0;
continue;
case REQUESTING:
- if (
!discover_retries || packet_num < discover_retries
) {
+ if (
packet_num < 3
) {
/* send broadcast select packet */
send_select(xid, server_addr, requested_ip);
timeout = discover_timeout;