]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: unset Link.ndisc_configured only when a new address or route is requested
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Nov 2022 02:10:21 +0000 (11:10 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 1 Dec 2022 22:15:09 +0000 (23:15 +0100)
commitd9a95033bf3a2a8cb886847dd7404a53336ac090
tree3983b027646b43eacd335bee8597de797a9eae13
parentf7031144da4d6fd8a765f6e5d27748fae4fe9a2e
network: unset Link.ndisc_configured only when a new address or route is requested

This fixes an issue introduced by af2aea8bb64b0dc42ecbe5549216eb567681a803.

When an outdated address or route is passed to link_request_address()/route(),
then they return 0 and the address or route will not be assigned. Such
situation can happen when we receive RA with zero lifetime. In that
case, we should not unset Link.ndisc_configured flag, otherwise even
no new address nor route will assigned, the interface will enter to the
configuring state, and unnecessary DBus property change is emit and the state
file will be updated. That makes resolved or timesyncd triggered to
reconfigure the interface.

Fixes #25456.
src/network/networkd-ndisc.c