[git commit] udhcpc6: fix lease time staying very small because -d was not specified
Denys Vlasenko
vda.linux at googlemail.com
Tue Jan 16 20:52:23 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=6e9e6d8fbe70d7b432dd3cca30d9974dee422890
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/udhcp/d6_dhcpc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 3e200eb..f6a0133 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -1706,6 +1706,10 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
bb_error_msg("%s obtained, lease time %u",
"prefix", /*inet_ntoa(temp_addr),*/ (unsigned)lease_seconds);
}
+ if (!address_timeout)
+ address_timeout = prefix_timeout;
+ if (!prefix_timeout)
+ prefix_timeout = address_timeout;
timeout = address_timeout > prefix_timeout ? prefix_timeout : address_timeout;
/* paranoia: must not be too small */
if (timeout < 0x10)
More information about the busybox-cvs
mailing list