diff options
author | Tom Gundersen <teg@jklm.no> | 2014-06-29 23:47:13 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-06-30 13:06:33 +0200 |
commit | 3e53303ea6e416eb46db838a37faaf685489ad85 (patch) | |
tree | c5ed89bb810945d9a366bd88e2d9a631768f175f /src | |
parent | 6afeb1cfe404e8615441c8727b48343253fc731a (diff) |
networkd: dhcp - use same metric for all DHCP-related routes
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-link.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index b597b16684..8df7ff5d60 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -546,6 +546,7 @@ static int link_enter_set_routes(Link *link) { route_gw->dst_addr.in = gateway; route_gw->dst_prefixlen = 32; route_gw->scope = RT_SCOPE_LINK; + route_gw->metrics = DHCP_STATIC_ROUTE_METRIC; r = route_configure(route_gw, link, &route_handler); if (r < 0) { @@ -559,6 +560,7 @@ static int link_enter_set_routes(Link *link) { route->family = AF_INET; route->in_addr.in = gateway; + route->metrics = DHCP_STATIC_ROUTE_METRIC; r = route_configure(route, link, &route_handler); if (r < 0) { |