From 0d03a6f3467d93f1ae7b04e3fed6fc11a1a9f9e4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 10 Nov 2011 23:03:45 +0100 Subject: Add ICMP errors for untranslatable addresses --- ip6t_DNPTV6.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ip6t_DNPTV6.c') diff --git a/ip6t_DNPTV6.c b/ip6t_DNPTV6.c index 96d16e8..506d0a5 100644 --- a/ip6t_DNPTV6.c +++ b/ip6t_DNPTV6.c @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -35,6 +36,7 @@ static unsigned int dnptv6_tg6(struct sk_buff *skb, const struct xt_action_param if (!translate_address(&hdr->daddr, &info->nptv6_prefix, info->nptv6_prefix_len)) { pr_devel("DNPTV6: untranslatable address\n"); + icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_NOT_NEIGHBOUR, 0); return NF_DROP; } -- cgit v1.2.3