summaryrefslogtreecommitdiff
path: root/miscutils/rfkill.c
diff options
context:
space:
mode:
authorDenys Vlasenko2021-05-01 11:54:08 +0200
committerDenys Vlasenko2021-05-01 12:23:25 +0200
commita1a77ad5eae7384dd6b1ccaa436a1df48c3c9cd7 (patch)
treef0735af73f2e4ec8c1ac98e9db10092943ffa263 /miscutils/rfkill.c
parente71ea6c1f84318d8655a5783736288695174f596 (diff)
downloadbusybox-a1a77ad5eae7384dd6b1ccaa436a1df48c3c9cd7.zip
busybox-a1a77ad5eae7384dd6b1ccaa436a1df48c3c9cd7.tar.gz
udhcpc[6]: untangle "timeout" and "remaining lease"; reduce min lease to 30 seconds
This allows to fix a problem that we wait for renew replies for up to half the lease (!!!) if they never come. Make it so that lease of 60 seconds is not "rounded up" to 120 seconds - set lower "sanity limit" to 30 seconds. After 3 failed renew attempts, switch to rebind. After this change, we can have more flexible choice of when to do the first renew - does not need to be equal to lease / 2. function old new delta udhcpc6_main 2568 2576 +8 .rodata 103339 103294 -45 udhcpc_main 2609 2550 -59 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 8/-104) Total: -96 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/rfkill.c')
0 files changed, 0 insertions, 0 deletions