]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: dhcp4: release old lease after the new address become ready
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 21 Jul 2020 14:06:51 +0000 (23:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 28 Jul 2020 17:05:05 +0000 (02:05 +0900)
commit6e537f62d71edea5bfcd2e2675c35ee840ffdc1f
tree3d7691b0942f551e4526ad0405e78ee5a31e2f8e
parent80b0e8608496df5c9592378fb7d3cc1a9583583f
network: dhcp4: release old lease after the new address become ready

Previously, on DHCPv4 address renewal, the old address may be removed
while the new address is not ready yet.

This also simplifies the logic of removing address and routes.
src/network/networkd-address.c
src/network/networkd-dhcp4.c
src/network/networkd-link.c
src/network/networkd-link.h
src/network/networkd-route.c