mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
network: ignore Scope= for IPv6 routes as it will not be used
This commit is contained in:
parent
0a2808a208
commit
fd7701bf31
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user