projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d0fff
)
networkd: RouteMetric for IPv6 Stateless Autoconfiguration (#5045)
author
Susant Sahani
<ssahani@users.noreply.github.com>
Tue, 10 Jan 2017 07:58:04 +0000
(13:28 +0530)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Tue, 10 Jan 2017 07:58:04 +0000
(08:58 +0100)
Add support to set route metric for IPv6
Fixes: #5002
src/network/networkd-ndisc.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-ndisc.c
b/src/network/networkd-ndisc.c
index
5097ab9
..
bc80c69
100644
(file)
--- 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;