Let send_rdns_withdraw and send_deconfigure_interface clean up after
authorflorian <florian@openbsd.org>
Mon, 1 Mar 2021 15:54:49 +0000 (15:54 +0000)
committerflorian <florian@openbsd.org>
Mon, 1 Mar 2021 15:54:49 +0000 (15:54 +0000)
commitb7f83d9ab1c58fda54411df2211233004aec6b71
tree1a37b0751fa19aa1561919501558d2f11e2c89ed
parent93bce128555e82d2309f3ebcea861b358e558348
Let send_rdns_withdraw and send_deconfigure_interface clean up after
themselves. This way the iface object is in a consistent state.
For consistency we should also withdraw rdns first, then deconfigure
the interface.
Lastly make sure we parse the lease file on a down -> up transition if
we had a lease before and it had expired while the interface was in
down state. Otherwise we'd send a dhcpdiscover requesting any IP
address while we really should send a dhcprequest asking for our
previous IP back.
sbin/dhcpleased/engine.c