The fudging of tiny lease times first appeared here enforcing a 10s minimum:
"udhcpc: guard against zero lease time"

https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=fc9e1080320e52fb97ae694627d8101af64f3dad
It then became 16s here:
"udhcpc: code shrink"

https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=0fd4347cedd1d32341e827c04dd36aaaf2e8040d
Lastly a large jump to enforcing a 122s minimum:

"udhcpc: ensure at least one unicast renew attempt"

https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=c05aa6a776ab2420a42c041a3b5d45db587fd9ef
My ISP's modem at startup uses a 60s lease time so busybox systematically lets 
it expire giving unpredictable results. I'm not affiliated with dd-wrt, just a 
user, so don't assume any in-depth networking knowledge.

Thanks for any explanation/clarification.
PS. Note that if the router manages to get online after the dhcp lease expiry 
fiasco, the lease is at least an hour.











_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to