NetworkManager/src/core/platform
Beniamino Galvani d01912d2fc platform: preserve IPv6 multicast route added by kernel
Kernels < 5.11 add a route like:

  unicast ff00::/8 dev $IFACE proto boot scope global metric 256 pref medium

to allow sending and receiving IPv6 multicast traffic. Ensure it's not
removed it when we do a route sync in mode ALL.

In kernel 5.11 there were commits:

  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ceed9038b2783d14e0422bdc6fd04f70580efb4c
  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a826b04303a40d52439aa141035fca5654ccaccd

After those the route looks like

  multicast ff00::/8 dev $IFACE proto kernel metric 256 pref medium

As NM ignores routes with rtm_type multicast, the code in this commit
is not needed on newer kernels.

https://bugzilla.redhat.com/show_bug.cgi?id=2004212
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/984
(cherry picked from commit 8003ca68f7)
(cherry picked from commit ce8eb446b4)
2021-09-20 10:38:46 +02:00
..
linux all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
tests platform/tests: relax unit test for setting IFLA_BR_FORWARD_DELAY/forward_delay 2021-03-12 11:20:43 +01:00
wifi all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
wpan all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-fake-platform.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-fake-platform.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-linux-platform.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-linux-platform.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-platform-private.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-platform.c platform: preserve IPv6 multicast route added by kernel 2021-09-20 10:38:46 +02:00
nm-platform.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nmp-object.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nmp-object.h platform: ensure NM_SOCK_ADDR_UNION_INIT_UNSPEC() fully initializes union 2021-02-16 14:14:46 +01:00
nmp-rules-manager.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nmp-rules-manager.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00