network: always call address ready callback if address is ready
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Sep 2021 06:57:55 +0000 (15:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Sep 2021 01:49:11 +0000 (10:49 +0900)
commit981fab5d0a62d2222dcc58e057e7bc283b47e17b
tree03978e9e51cabe075c0a5097fbc7829121cabd28
parent18d8a33a3797dcd5e68932a17c6fdea660ae4c1c
network: always call address ready callback if address is ready

The address ready callback is used for cleaning up old addresses or
routes acquired by e.g. DHCP. However, the callback was called only
when the address was previously not ready. So, maybe, unnecessary
addresses or routes may not be cleared.

Also, this makes the callback is called slightly earlier. As it may
remove several addresses or routes, and possibly changes the link state.
src/network/networkd-address.c