diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-30 15:27:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-30 15:27:11 -0500 |
commit | b3419363808f2481b24a817f491878e1795db4c7 (patch) | |
tree | 76cfa3c55d6798a9bf25d200778dc212841f6cb0 /include | |
parent | 672f007d65f50468a4a1e55825fe58e5b035324d (diff) |
ipv6: Add infrastructure to bind inet_peer objects to routes.
They are only allowed on cached ipv6 routes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip6_fib.h | 2 | ||||
-rw-r--r-- | include/net/ip6_route.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index 062a823d311c..708ff7cb8806 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <net/dst.h> | 21 | #include <net/dst.h> |
22 | #include <net/flow.h> | 22 | #include <net/flow.h> |
23 | #include <net/netlink.h> | 23 | #include <net/netlink.h> |
24 | #include <net/inetpeer.h> | ||
24 | 25 | ||
25 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES | 26 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES |
26 | #define FIB6_TABLE_HASHSZ 256 | 27 | #define FIB6_TABLE_HASHSZ 256 |
@@ -109,6 +110,7 @@ struct rt6_info { | |||
109 | u32 rt6i_metric; | 110 | u32 rt6i_metric; |
110 | 111 | ||
111 | struct inet6_dev *rt6i_idev; | 112 | struct inet6_dev *rt6i_idev; |
113 | struct inet_peer *rt6i_peer; | ||
112 | 114 | ||
113 | #ifdef CONFIG_XFRM | 115 | #ifdef CONFIG_XFRM |
114 | u32 rt6i_flow_cache_genid; | 116 | u32 rt6i_flow_cache_genid; |
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 278312c95f96..23fed28db4bb 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -56,6 +56,9 @@ static inline unsigned int rt6_flags2srcprefs(int flags) | |||
56 | return (flags >> 3) & 7; | 56 | return (flags >> 3) & 7; |
57 | } | 57 | } |
58 | 58 | ||
59 | extern void rt6_bind_peer(struct rt6_info *rt, | ||
60 | int create); | ||
61 | |||
59 | extern void ip6_route_input(struct sk_buff *skb); | 62 | extern void ip6_route_input(struct sk_buff *skb); |
60 | 63 | ||
61 | extern struct dst_entry * ip6_route_output(struct net *net, | 64 | extern struct dst_entry * ip6_route_output(struct net *net, |