network/ndisc: do nothing for existing routes if on-link flag is zero
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Apr 2024 19:24:57 +0000 (04:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Apr 2024 21:12:03 +0000 (06:12 +0900)
commit9f368d9eb2c15ce38f5643174375f986795ce84c
treef37859d828c6e8c47c47ea237a68d46639fcf74b
parent3a768db480311d09365deb3286d6a7c546023208
network/ndisc: do nothing for existing routes if on-link flag is zero

This effectively reverts commit 155d7a2c049cf866a0bfde8de371f09dfb3b6f29.

From RFC 4861 section 6.3.4:
> Note, however, that a Prefix Information option with the on-link flag
> set to zero conveys no information concerning on-link determination and
> MUST NOT be interpreted to mean that addresses covered by the prefix
> are off-link.

So, we should not drop previously configured routes when receieved a RA
with Prefix Information option without on-link flag.

Closes #28435.
src/network/networkd-ndisc.c