aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mroute6.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mroute6.h')
-rw-r--r--include/linux/mroute6.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/mroute6.h b/include/linux/mroute6.h
index 6f4c180179e2..2cd9901ee5c7 100644
--- a/include/linux/mroute6.h
+++ b/include/linux/mroute6.h
@@ -117,6 +117,7 @@ struct sioc_mif_req6
117 117
118#include <linux/pim.h> 118#include <linux/pim.h>
119#include <linux/skbuff.h> /* for struct sk_buff_head */ 119#include <linux/skbuff.h> /* for struct sk_buff_head */
120#include <net/net_namespace.h>
120 121
121#ifdef CONFIG_IPV6_MROUTE 122#ifdef CONFIG_IPV6_MROUTE
122static inline int ip6_mroute_opt(int opt) 123static inline int ip6_mroute_opt(int opt)
@@ -232,10 +233,13 @@ struct rtmsg;
232extern int ip6mr_get_route(struct sk_buff *skb, struct rtmsg *rtm, int nowait); 233extern int ip6mr_get_route(struct sk_buff *skb, struct rtmsg *rtm, int nowait);
233 234
234#ifdef CONFIG_IPV6_MROUTE 235#ifdef CONFIG_IPV6_MROUTE
235extern struct sock *mroute6_socket; 236static inline struct sock *mroute6_socket(struct net *net)
237{
238 return net->ipv6.mroute6_sk;
239}
236extern int ip6mr_sk_done(struct sock *sk); 240extern int ip6mr_sk_done(struct sock *sk);
237#else 241#else
238#define mroute6_socket NULL 242static inline struct sock *mroute6_socket(struct net *net) { return NULL; }
239static inline int ip6mr_sk_done(struct sock *sk) { return 0; } 243static inline int ip6mr_sk_done(struct sock *sk) { return 0; }
240#endif 244#endif
241#endif 245#endif