diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-29 18:02:01 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-29 18:02:01 +0200 |
commit | f625836e6059d307e951a60b60f1c9ed259ee983 (patch) | |
tree | 1e4be21937a6b9d23969b1a4b2ab95428ebcb048 /networking/udhcp/dhcpc.c | |
parent | a6a3ad327360669e0c12552f680382e3b9713489 (diff) | |
download | busybox-w32-f625836e6059d307e951a60b60f1c9ed259ee983.tar.gz busybox-w32-f625836e6059d307e951a60b60f1c9ed259ee983.tar.bz2 busybox-w32-f625836e6059d307e951a60b60f1c9ed259ee983.zip |
udhcpc[6]: make log2 messages for chaddr field indented like the rest
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 2ae8bcc4d..4548d4ac7 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -1534,6 +1534,13 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) | |||
1534 | */ | 1534 | */ |
1535 | if (send_renew(xid, server_addr, requested_ip) >= 0) { | 1535 | if (send_renew(xid, server_addr, requested_ip) >= 0) { |
1536 | timeout >>= 1; | 1536 | timeout >>= 1; |
1537 | //TODO: the timeout to receive an answer for our renew should not be selected | ||
1538 | //with "timeout = lease_seconds / 2; ...; timeout = timeout / 2": it is often huge. | ||
1539 | //Waiting e.g. 4*3600 seconds for a reply does not make sense | ||
1540 | //(if reply isn't coming, we keep an open socket for hours), | ||
1541 | //it should be something like 10 seconds. | ||
1542 | //Also, it's probably best to try sending renew in kernel mode a few (3-5) times | ||
1543 | //and fall back to raw mode if it does not work. | ||
1537 | continue; | 1544 | continue; |
1538 | } | 1545 | } |
1539 | /* else: error sending. | 1546 | /* else: error sending. |