Do not enter a tight INIT -> REQUESTING -> INIT loop when the dhcp
authorflorian <florian@openbsd.org>
Wed, 4 Aug 2021 05:56:58 +0000 (05:56 +0000)
committerflorian <florian@openbsd.org>
Wed, 4 Aug 2021 05:56:58 +0000 (05:56 +0000)
commitc6b4c3c36a60ef8424043638990745a0f7667ce0
tree268ba50b0fe0f3d6ea5a60b0923b434c6503c205
parentccba09fa7dd332460c2ae4add50c01cf2ddf34cb
Do not enter a tight INIT -> REQUESTING -> INIT loop when the dhcp
server responds to our DHCPDISCOVER but is then slow to respond to our
DHCPREQUEST.
MAX_EXP_BACKOFF_FAST was introduced to get us quickly out of the
REBOOTING state when we switch networks and no dhcp server would NAK
our old lease but just ignore us. This is not the issue here, there is
a dhcp server willing to talk to us, it's just slow.
Problem reported, tested & OK jca
sbin/dhcpleased/engine.c