mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
ipv6: RTA_PREFSRC support for ipv6 route source address selection
[ipv6] Add support for RTA_PREFSRC This patch allows a user to select the preferred source address for a specific IPv6-Route. It can be set via a netlink message setting RTA_PREFSRC to a valid IPv6 address which must be up on the device the route will be bound to. Signed-off-by: Daniel Walter <dwalter@barracuda.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bd015928bb
commit
c3968a857a
5 changed files with 84 additions and 7 deletions
|
@ -42,6 +42,7 @@ struct fib6_config {
|
|||
|
||||
struct in6_addr fc_dst;
|
||||
struct in6_addr fc_src;
|
||||
struct in6_addr fc_prefsrc;
|
||||
struct in6_addr fc_gateway;
|
||||
|
||||
unsigned long fc_expires;
|
||||
|
@ -107,6 +108,7 @@ struct rt6_info {
|
|||
struct rt6key rt6i_dst ____cacheline_aligned_in_smp;
|
||||
u32 rt6i_flags;
|
||||
struct rt6key rt6i_src;
|
||||
struct rt6key rt6i_prefsrc;
|
||||
u32 rt6i_metric;
|
||||
u32 rt6i_peer_genid;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue