[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: udhcpc allows short lease to expire then attempts renew
From:       Paul Larkin <sinbad_4273 () yahoo ! com>
Date:       2021-04-15 20:38:52
Message-ID: 1443791995.1482628.1618519132387 () mail ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.


[Attachment #5 (text/html)]

<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica \
Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" \
data-setdir="false">The fudging of tiny lease times first appeared here enforcing a \
10s minimum:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false"><span>"udhcpc: guard against zero lease \
time"</span><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false"><a \
href="https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=fc9e1080320e52fb97ae694627d8101af64f3dad" \
rel="nofollow" target="_blank">https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=fc9e1080320e52fb97ae694627d8101af64f3dad</a></div><div \
dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">It then \
became 16s here:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false"><span>"udhcpc: code shrink"</span><br></div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><a \
href="https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=0fd4347cedd1d32341e827c04dd36aaaf2e8040d" \
rel="nofollow" target="_blank" \
class="">https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=0fd4347cedd1d32341e827c04dd36aaaf2e8040d</a></div><div><br></div><div \
dir="ltr" data-setdir="false">Lastly a large jump to enforcing a 122s \
minimum:<br></div><div><br></div><div dir="ltr" data-setdir="false">"<span>udhcpc: \
ensure at least one unicast renew attempt</span>"<br></div><div><br></div><div \
dir="ltr" data-setdir="false"><a \
href="https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=c05aa6a776ab2420a42c041a3b5d45db587fd9ef" \
rel="nofollow" target="_blank">https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?id=c05aa6a776ab2420a42c041a3b5d45db587fd9ef</a></div><div \
dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">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.<br></div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks for any \
explanation/clarification.</div><div dir="ltr" data-setdir="false"><br></div><div \
dir="ltr" data-setdir="false">PS. Note that if the router manages to get online after \
the dhcp lease expiry fiasco, the lease is at least an hour.<br></div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div \
dir="ltr" data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div \
dir="ltr" data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div \
dir="ltr" data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false"><br></div><div><br></div></div></body></html>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic