network/ndisc: remove conflicting routes on configuring routes based on newly received RA
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Feb 2024 03:30:32 +0000 (12:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Feb 2024 15:43:12 +0000 (00:43 +0900)
commit972f1d17ab461a51142a142609dd3ec50bae8440
tree7c88fb56b209fd0c7a45fc26ec0d37f344d14068
parent7027cdbd79c26d5a8890759a37d70165c8aeb214
network/ndisc: remove conflicting routes on configuring routes based on newly received RA

The linux kernel does not update several parameters, e.g. RTA_PREF.
Hence, when we configure routes based on a RA, we need to remove
existing conflicting routes.

Fixes #28426 and #28439.
src/network/networkd-ndisc.c
src/network/networkd-route.c
src/network/networkd-route.h