summaryrefslogtreecommitdiffstats
path: root/ip6t_SNPTV6.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip6t_SNPTV6.c')
-rw-r--r--ip6t_SNPTV6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ip6t_SNPTV6.c b/ip6t_SNPTV6.c
index 5651382..79747ae 100644
--- a/ip6t_SNPTV6.c
+++ b/ip6t_SNPTV6.c
@@ -7,6 +7,7 @@
#include <linux/module.h>
#include <linux/version.h>
+#include <linux/icmpv6.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
#include <net/ipv6.h>
@@ -35,6 +36,7 @@ static unsigned int snptv6_tg6(struct sk_buff *skb, const struct xt_action_param
if (!translate_address(&hdr->saddr, &info->nptv6_prefix, info->nptv6_prefix_len)) {
pr_devel("SNPTV6: untranslatable address\n");
+ icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_NOT_NEIGHBOUR, 0);
return NF_DROP;
}