diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-10 23:03:45 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-10 23:03:45 +0100 |
commit | 0d03a6f3467d93f1ae7b04e3fed6fc11a1a9f9e4 (patch) | |
tree | 1f9150119579ec4f981beaf7446fe29c9e539e5b /ip6t_DNPTV6.c | |
parent | 8790aa53a3d0959ba318fea1ecb9de5a4de4cac5 (diff) | |
download | NPTv6-0d03a6f3467d93f1ae7b04e3fed6fc11a1a9f9e4.tar NPTv6-0d03a6f3467d93f1ae7b04e3fed6fc11a1a9f9e4.zip |
Add ICMP errors for untranslatable addresses
Diffstat (limited to 'ip6t_DNPTV6.c')
-rw-r--r-- | ip6t_DNPTV6.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <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 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; } |