]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: drop old ndisc configurations after new ones are configured
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Jul 2021 11:15:10 +0000 (20:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Jul 2021 11:59:38 +0000 (20:59 +0900)
commitfe139e8ef9bcd985b9df495edf4f97e40d5332ea
tree5769938848e7d1a746c2b11fc5f17f751d04be19
parent790736e42e39476409be55113a796132f041d256
network: drop old ndisc configurations after new ones are configured

Previously, `ndisc_remove_old_one()` checked `ndisc_{addresses,routes}_configured`
flags, but they are not unset when all addresses or routes are already
assigned.
After the request queue is implemented, the address or route requests
are not processed within the same event of ndisc handler is called, but
will processed later when they are ready. So, calling `ndisc_remove_old()`
in the event of ndisc handler will remove all addresses and routes
previously assigned even they are requested to be updated.

This makes `ndisc_remove_old()` do nothing when there exist some
requests to configure addresses and routes, thus previously assigned
addresses and routes are kept until all requests are processed.

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