summaryrefslogtreecommitdiff
path: root/src/network/networkd-route.h
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-route.h
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-route.h')
-rw-r--r--src/network/networkd-route.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-route.h b/src/network/networkd-route.h
index 2c0b705402..b1ed5d1085 100644
--- a/src/network/networkd-route.h
+++ b/src/network/networkd-route.h
@@ -34,10 +34,9 @@ struct Route {
unsigned char dst_prefixlen;
unsigned char src_prefixlen;
unsigned char scope;
- uint32_t metrics;
unsigned char protocol; /* RTPROT_* */
unsigned char tos;
- unsigned char priority;
+ uint32_t priority; /* note that ip(8) calls this 'metric' */
unsigned char table;
union in_addr_union gw;