diff options
author | Daniel Walter <sahne@0x90.at> | 2011-04-13 17:10:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-15 18:44:37 -0400 |
commit | c3968a857a6b6c3d2ef4ead35776b055fb664d74 (patch) | |
tree | f82be0953ff4454218f38ffb803fdcfb93a6f2a3 /include/net/ip6_fib.h | |
parent | bd015928bb1713691068c4d0d159afccbaf0f8c0 (diff) |
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>
Diffstat (limited to 'include/net/ip6_fib.h')
-rw-r--r-- | include/net/ip6_fib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index bc3cde0a810c..98348d53b2b6 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
@@ -42,6 +42,7 @@ struct fib6_config { | |||
42 | 42 | ||
43 | struct in6_addr fc_dst; | 43 | struct in6_addr fc_dst; |
44 | struct in6_addr fc_src; | 44 | struct in6_addr fc_src; |
45 | struct in6_addr fc_prefsrc; | ||
45 | struct in6_addr fc_gateway; | 46 | struct in6_addr fc_gateway; |
46 | 47 | ||
47 | unsigned long fc_expires; | 48 | unsigned long fc_expires; |
@@ -107,6 +108,7 @@ struct rt6_info { | |||
107 | struct rt6key rt6i_dst ____cacheline_aligned_in_smp; | 108 | struct rt6key rt6i_dst ____cacheline_aligned_in_smp; |
108 | u32 rt6i_flags; | 109 | u32 rt6i_flags; |
109 | struct rt6key rt6i_src; | 110 | struct rt6key rt6i_src; |
111 | struct rt6key rt6i_prefsrc; | ||
110 | u32 rt6i_metric; | 112 | u32 rt6i_metric; |
111 | u32 rt6i_peer_genid; | 113 | u32 rt6i_peer_genid; |
112 | 114 | ||