udhcpc allows short lease to expire then attempts renew

Paul Larkin sinbad_4273 at yahoo.com
Thu Apr 15 20:38:52 UTC 2021


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.











-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20210415/38ad8c92/attachment.html>


More information about the busybox mailing list