NetworkManager/src/core/ndisc
Beniamino Galvani d775c3d256 ndisc: honor default route parameters from RA route options
RFC 4191 section-3.1 says:

  When processing a Router Advertisement, a type C host first updates a
  ::/0 route based on the Router Lifetime and Default Router Preference
  in the Router Advertisement message header. [...] The Router Preference
  and Lifetime values in a ::/0 Route Information Option override the
  preference and lifetime values in the Router Advertisement header.

Fix the RA parsing so that the parameters from a default route option
are applied to the gateway.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1666
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2072

Fixes: c3a4656a68 ('rdisc: libndp implementation')
(cherry picked from commit 6c18fda519)
2024-12-18 10:11:17 +01:00
..
tests ndisc/tests: fix reference counting in nm_fake_ndisc_new() 2023-01-05 12:13:39 +01:00
nm-fake-ndisc.c all: use NM_MAX() instead of MAX() 2023-11-15 09:32:21 +01:00
nm-fake-ndisc.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nm-lndp-ndisc.c ndisc: honor default route parameters from RA route options 2024-12-18 10:11:17 +01:00
nm-lndp-ndisc.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nm-ndisc-private.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ndisc.c ndisc: preserve router preferences 2024-07-26 09:12:53 +02:00
nm-ndisc.h Updated code format 2024-04-08 06:35:20 +00:00