network/ndisc: fix removal of unnecessary routes (#35128)
authorLuca Boccassi <bluca@debian.org>
Wed, 13 Nov 2024 14:06:21 +0000 (14:06 +0000)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2024 14:06:21 +0000 (14:06 +0000)
commit4efc556211dfa39490d46c0711c858ea116787af
treea79d8718f3f94c947fb85f6a3f84a28b2002bdeb
parentb4dc8b6415c01b814ce30d77a3430e59e1e765e5
parentd7b323c2dd1fbb3c3d40d8d053da12f3dee69365
network/ndisc: fix removal of unnecessary routes (#35128)

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.