Revert "network: ndisc - drop routes of lifetime 0"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Sep 2023 05:29:55 +0000 (14:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Sep 2023 05:34:56 +0000 (14:34 +0900)
commit2b4fca55d0218d9ea079a8669d74b5c20d7ce197
tree038993c2419d9f06ea87ed0008081401704c9247
parentb63beb4d283438be2b0f5c62757ab0db7dee8d65
Revert "network: ndisc - drop routes of lifetime 0"

This reverts commit 4ccd48cb2693a3603f14a30b6286228597285d92.

From RFC 4861 section 4.2.
> The Router Lifetime applies only to the router's usefulness as a default
> router; it does not apply to information contained in other message fields
> or options.  Options that need time limits for their information include
> their own lifetime fields.

Hence, based on the lifetime field of the message header, we should not
drop any other information.
Note that, in ndisc_router_process_default(), we have already dropp the
default gateway when the lifetime is zero. Hence, we can safely drop the
change.
src/network/networkd-ndisc.c