network: fix DHCPv4 address renewal with IPv4ACD
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Aug 2022 05:15:23 +0000 (14:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Aug 2022 06:44:23 +0000 (15:44 +0900)
commite402e99eaa59cd15e00c71fb7168f001a03e33ca
treee61f2f52e5de816ddcb273a3c78e9bfab27a6049
parent5ad8116a87fb2dd63cc935ec36321e7356061b54
network: fix DHCPv4 address renewal with IPv4ACD

Previously, when a DHCP address is renewed and if the IPv4ACD for the
address is enabled, the address will never drop the probing flag, thus
the lifetime of the address will never be updated.

This drops NETWORK_CONFIG_STATE_PROBING, and the IPv4ACD status is
managed another bit, Address.acd_bound. And, the flag is updated only
when the IPv4ACD announced the address or detects conflict.
src/network/networkd-address.c
src/network/networkd-address.h
src/network/networkd-ipv4acd.c
src/network/networkd-ipv4acd.h
src/network/networkd-util.c
src/network/networkd-util.h