Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Ahern and committed by
David S. Miller
620dee94 d169a1f8

+1
+1
include/uapi/linux/if_addr.h
··· 33 33 IFA_CACHEINFO, 34 34 IFA_MULTICAST, 35 35 IFA_FLAGS, 36 + IFA_RT_PRIORITY, /* u32, priority/metric for prefix route */ 36 37 __IFA_MAX, 37 38 }; 38 39