aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/ipv6/nf_reject.h
blob: 48e18810a9be6fcc6250f80db0d8febcf4e3cdf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _IPV6_NF_REJECT_H
#define _IPV6_NF_REJECT_H

#include <linux/icmpv6.h>

static inline void
nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,
	     unsigned int hooknum)
{
	if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL)
		skb_in->dev = net->loopback_dev;

	icmpv6_send(skb_in, ICMPV6_DEST_UNREACH, code, 0);
}

void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook);

#endif /* _IPV6_NF_REJECT_H */