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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index ab3e5a463..d2f165904 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1725,8 +1725,9 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1725 move_from_unaligned32(lease_seconds, temp); 1725 move_from_unaligned32(lease_seconds, temp);
1726 lease_seconds = ntohl(lease_seconds); 1726 lease_seconds = ntohl(lease_seconds);
1727 /* paranoia: must not be too small and not prone to overflows */ 1727 /* paranoia: must not be too small and not prone to overflows */
1728 if (lease_seconds < 0x10) 1728 /* timeout > 60 - ensures at least one unicast renew attempt */
1729 lease_seconds = 0x10; 1729 if (lease_seconds < 2 * 61)
1730 lease_seconds = 2 * 61;
1730 //if (lease_seconds > 0x7fffffff) 1731 //if (lease_seconds > 0x7fffffff)
1731 // lease_seconds = 0x7fffffff; 1732 // lease_seconds = 0x7fffffff;
1732 //^^^not necessary since "timeout = lease_seconds / 2" 1733 //^^^not necessary since "timeout = lease_seconds / 2"