From: Yu Watanabe Date: Thu, 13 Aug 2020 15:04:00 +0000 (+0900) Subject: network: ignore Scope= for IPv6 routes as it will not be used X-Git-Tag: v247-rc1~110^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd7701bf311dde85375f46d39b36a81215c062d4;p=thirdparty%2Fsystemd.git network: ignore Scope= for IPv6 routes as it will not be used --- diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 1b725c1a2d1..870de18b8cf 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -2201,6 +2201,11 @@ static int route_section_verify(Route *route, Network *network) { route->scope = RT_SCOPE_LINK; } + if (route->scope != RT_SCOPE_UNIVERSE && route->family == AF_INET6) { + log_warning("%s: Scope= is specified for IPv6 route. It will be ignored.", route->section->filename); + route->scope = RT_SCOPE_UNIVERSE; + } + if (route->family == AF_INET6 && route->priority == 0) route->priority = IP6_RT_PRIO_USER;