summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-10-26 17:04:57 +0100
committerTom Gundersen <teg@jklm.no>2015-10-30 12:32:48 +0100
commit86655331bc28887def7998d321b14ef8fccbeaf9 (patch)
treeee9688d449630e5366f0dbe6d5a002cba29ae005 /src/network/networkd-network.c
parent2ce409569093f7c2c6732246978a901a27f2bce3 (diff)
networkd: route - clean up confusion between 'metric' and 'priority'
Different tools use different terms for the same concept, let's try to stick with 'priority', as that is what the netlink API uses.
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index c73d68201b..14c201e9a5 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -370,7 +370,7 @@ int network_apply(Manager *manager, Network *network, Link *link) {
route->family = AF_INET;
route->dst_prefixlen = 16;
route->scope = RT_SCOPE_LINK;
- route->metrics = IPV4LL_ROUTE_METRIC;
+ route->priority = IPV4LL_ROUTE_METRIC;
route->protocol = RTPROT_STATIC;
}