summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-07-10 00:30:27 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-23 22:08:49 +0900
commitbd7d6cec331a00fed29d00c2498f04e83d70b19c (patch)
tree495faf78eca59a669099379dd951272ace937ae8
parentad3f86e6a4e5f2d5d64c81f9a30f250b624284fa (diff)
downloadsystemd-bd7d6cec331a00fed29d00c2498f04e83d70b19c.tar.gz
network: do not touch kernel-created multicast route
Fixes #6088.
-rw-r--r--src/network/networkd-link.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 8ca4583034..17829fca9f 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -2416,6 +2416,15 @@ static int link_drop_foreign_config(Link *link) {
if (route->protocol == RTPROT_KERNEL)
continue;
+ /* do not touch multicast route added by kernel */
+ /* FIXME: Why the kernel adds this route with protocol RTPROT_BOOT??? We need to investigate that.
+ * https://tools.ietf.org/html/rfc4862#section-5.4 may explain why. */
+ if (route->protocol == RTPROT_BOOT &&
+ route->family == AF_INET6 &&
+ route->dst_prefixlen == 8 &&
+ in_addr_equal(AF_INET6, &route->dst, &(union in_addr_union) { .in6 = {{{ 0xff,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 }}} }))
+ continue;
+
if (route->protocol == RTPROT_STATIC &&
FLAGS_SET(link->network->keep_configuration, KEEP_CONFIGURATION_STATIC))
continue;