network: make IPv6 routes with reject type managed by Manager

This commit is contained in:
Yu Watanabe 2020-12-03 18:51:53 +09:00
parent 6c252588df
commit 575f14eef0
1 changed files with 6 additions and 0 deletions

View File

@ -1582,6 +1582,12 @@ int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, Ma
}
}
/* IPv6 routes with reject type are always assigned to the loopback interface. See kernel's
* fib6_nh_init() in net/ipv6/route.c. However, we'd like to manage them by Manager. Hence, set
* link to NULL here. */
if (route_type_is_reject(tmp))
link = NULL;
if (ordered_set_isempty(multipath_routes))
(void) process_route_one(m, link, type, tmp, NULL);
else {