diff options
author | David Ahern <dsahern@gmail.com> | 2018-05-27 08:09:56 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-29 10:12:45 -0400 |
commit | 620dee9415fae09003d012cc7c23b011e5ebb43d (patch) | |
tree | a0969ac3323bdb0621c7decdbd8f9d92b7cac35f /include/uapi/linux/if_addr.h | |
parent | d169a1f8baa42b416bf00df2c62a8af82c124775 (diff) | |
download | linux-stable-620dee9415fae09003d012cc7c23b011e5ebb43d.tar.gz linux-stable-620dee9415fae09003d012cc7c23b011e5ebb43d.tar.bz2 linux-stable-620dee9415fae09003d012cc7c23b011e5ebb43d.zip |
net: Add IFA_RT_PRIORITY address attribute
Currently, if two interfaces have addresses in the same connected route,
then the order of the prefix route entries is determined by the order in
which the addresses are assigned or the links brought up.
Add IFA_RT_PRIORITY to allow user to specify the metric of the prefix
route associated with an address giving interface managers better
control of the order of prefix routes.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/if_addr.h')
-rw-r--r-- | include/uapi/linux/if_addr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_addr.h b/include/uapi/linux/if_addr.h index 2ef053d265de..ebaf5701c9db 100644 --- a/include/uapi/linux/if_addr.h +++ b/include/uapi/linux/if_addr.h @@ -33,6 +33,7 @@ enum { IFA_CACHEINFO, IFA_MULTICAST, IFA_FLAGS, + IFA_RT_PRIORITY, /* u32, priority/metric for prefix route */ __IFA_MAX, }; |