aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c7
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.