drivers/net: macvtap and tun depend on INET
[sfrench/cifs-2.6.git] / include / net / netfilter / ipv6 / nf_reject.h
1 #ifndef _IPV6_NF_REJECT_H
2 #define _IPV6_NF_REJECT_H
3
4 #include <linux/icmpv6.h>
5
6 static inline void
7 nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,
8              unsigned int hooknum)
9 {
10         if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL)
11                 skb_in->dev = net->loopback_dev;
12
13         icmpv6_send(skb_in, ICMPV6_DEST_UNREACH, code, 0);
14 }
15
16 void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook);
17
18 #endif /* _IPV6_NF_REJECT_H */