mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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:
parent
620dee9415
commit
af4d768ad2
4 changed files with 59 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue