net/ipv4: Add support for specifying metric of connected routes
Add support for IFA_RT_PRIORITY to ipv4 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 replaced. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
620dee9415
commit
af4d768ad2
@@ -139,6 +139,7 @@ struct in_ifaddr {
|
||||
__be32 ifa_local;
|
||||
__be32 ifa_address;
|
||||
__be32 ifa_mask;
|
||||
__u32 ifa_rt_priority;
|
||||
__be32 ifa_broadcast;
|
||||
unsigned char ifa_scope;
|
||||
unsigned char ifa_prefixlen;
|
||||
|
Reference in New Issue
Block a user