From: Susant Sahani Date: Tue, 10 Jan 2017 07:58:04 +0000 (+0530) Subject: networkd: RouteMetric for IPv6 Stateless Autoconfiguration (#5045) X-Git-Tag: v233~252 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91b8fd3cadc65b9d62a272bf5095d1ea9299d9e5;p=thirdparty%2Fsystemd.git networkd: RouteMetric for IPv6 Stateless Autoconfiguration (#5045) Add support to set route metric for IPv6 Fixes: #5002 --- diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 5097ab9d720..bc80c693d09 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -133,6 +133,7 @@ static void ndisc_router_process_default(Link *link, sd_ndisc_router *rt) { route->family = AF_INET6; route->table = link->network->ipv6_accept_ra_route_table; + route->priority = link->network->dhcp_route_metric; route->protocol = RTPROT_RA; route->pref = preference; route->gw.in6 = gateway; @@ -254,6 +255,7 @@ static void ndisc_router_process_onlink_prefix(Link *link, sd_ndisc_router *rt) route->family = AF_INET6; route->table = link->network->ipv6_accept_ra_route_table; + route->priority = link->network->dhcp_route_metric; route->protocol = RTPROT_RA; route->flags = RTM_F_PREFIX; route->dst_prefixlen = prefixlen;