mirror of
https://github.com/NetworkConfiguration/dhcpcd.git
synced 2026-01-27 06:24:18 +00:00
* Protocols will notify when dhcpcd can exit DHCPv6 RELEASE requires the addresses to be dropped before a RELEASE message is sent. We now wait for an acknowledgement or a timeout before notifying that DHCPv6 has stopped for the interface. DHCPv4 RELEASE is the other way around, there is no acknowledgement. So we wait for 1 second after sending the message before removing the address and notifying DHCP has stopped for the interface. If we are not releasing then we notify dhcpcd that the protocol has stopped right away when we drop the lease. dhcpcd will exit once there are no running protocols for the interfaces. Fixes #513. Hopefully #535, #519 and #509 as well. Co-authored-by: Sime Zupanovic (EXT) <sime.zupanovic.ext@ericsson.com>