Files
systemd/src
Yu Watanabe 9142bd5a8e network/ndisc: drop only default gateway via the host when a neighbor announcement without router flag is received
A host can send Router Advertisements (RAs) without acting as a router.
In such cases, the lifetime of the RA header should be zero, but may
contain several options, and clients can configure addresses, routes,
and so on with the message. The host may (should?) send Neighbor
Announcements (NAs) without the router flag in that case.

So, when a NA without the router flag is received, let's not drop
configurations based on the previous RA options, but only drop the
default gateway configured based on the RA header.

See RFC 4861 Neighbor Discovery in IPv6, section 6.3.4:
https://www.rfc-editor.org/rfc/rfc4861#section-6.3.4:~:text=%2D%20The%20IsRouter%20flag,as%20a%20host.
> - The IsRouter flag in the cache entry MUST be set based on the Router
>   flag in the received advertisement. In those cases where the IsRouter
>   flag changes from TRUE to FALSE as a result of this update, the node
>   MUST remove that router from the Default Router List and update the
>   Destination Cache entries for all destinations using that neighbor as
>   a router as specified in Section 7.3.3. This is needed to detect when
>   a node that is used as a router stops forwarding packets due to being
>   configured as a host.

Fixes a regression caused by 87a33c0740 (v256).
Fixes #37198.
2025-04-30 22:17:03 +09:00
..
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-03-19 01:44:01 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-03-25 10:37:00 +01:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-03-05 11:26:47 +00:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00