network/ndisc: restore the original preference and priority before checking if existi...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Nov 2024 17:11:12 +0000 (02:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 Nov 2024 09:08:25 +0000 (18:08 +0900)
commite2060bc124238581d48be159b4da44017f96a26d
treebb02b883fd9867cbfc79a9e955192cc94c8c97f6
parent74e0b590dd4defad123a7876784009d86c1b1e32
network/ndisc: restore the original preference and priority before checking if existing route can be updated

Follow-up for 972f1d17ab461a51142a142609dd3ec50bae8440.

This fixes the logic of removing unnecessary routes configured by the
previously received RAs. Previously, we wrongly handled existing routes
could be updated, and unexpected routes would be kept.
src/network/networkd-ndisc.c