summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-05-27 08:09:58 -0700
committerDavid S. Miller <davem@davemloft.net>2018-05-29 10:12:45 -0400
commit8308f3ff1753d001f7a73f9bb0f02292b5400557 (patch)
treec6858bda7b0260b1db15fdb4132ffd8245fe90c5 /include/net
parentaf4d768ad28cbf6542ba70dba10b49127b31b762 (diff)
downloadop-kernel-dev-8308f3ff1753d001f7a73f9bb0f02292b5400557.zip
op-kernel-dev-8308f3ff1753d001f7a73f9bb0f02292b5400557.tar.gz
net/ipv6: Add support for specifying metric of connected routes
Add support for IFA_RT_PRIORITY to ipv6 addresses. If the metric is changed on an existing address then the new route is inserted before removing the old one. Since the metric is one of the route keys, the prefix route can not be atomically replaced. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/addrconf.h1
-rw-r--r--include/net/if_inet6.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index f766af2..5f43f7a 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -65,6 +65,7 @@ struct ifa6_config {
const struct in6_addr *peer_pfx;
+ u32 rt_priority;
u32 ifa_flags;
u32 preferred_lft;
u32 valid_lft;
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
index db38925..d7578cf 100644
--- a/include/net/if_inet6.h
+++ b/include/net/if_inet6.h
@@ -42,6 +42,7 @@ enum {
struct inet6_ifaddr {
struct in6_addr addr;
__u32 prefix_len;
+ __u32 rt_priority;
/* In seconds, relative to tstamp. Expiry is at tstamp + HZ * lft. */
__u32 valid_lft;
OpenPOWER on IntegriCloud