]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: dhcp4: do not assign new address before old one is not removed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 14 Jul 2020 16:30:09 +0000 (01:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Jul 2020 08:15:25 +0000 (17:15 +0900)
commit6906794dd1698954b349ec3ec84f1494ecd63cd3
treec23e9fd5a2dfd3047370d8b10f115b2712d8c158
parent5d976f5f64a29e9df0afe95724716eb9c4221b24
network: dhcp4: do not assign new address before old one is not removed

If DHCP4 client lost a lease, and then soon acquire new lease, then
the removal of the old address may not be completed. If that happens,
and the new and old addresses are the same, then the new address will be
considered as a foreign address. Such a situation can occur when the
DHCP4 server is restarted.

This makes networkd wait for the removal of the old address when a new
lease is acquired.

This also makes the link in configuring state when renewing address.
src/network/networkd-dhcp4.c
src/network/networkd-link.h