summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-04-13 15:32:16 +0200
committerPatrick McHardy <kaber@trash.net>2010-04-13 15:32:16 +0200
commit9c6eb28aca52d562f3ffbaebaa56385df9972a43 (patch)
tree775683fe8a8549274610872b44e4778c76195fa2 /include/linux
parent9e50849054a4824f06c66d2b449de21b98e03770 (diff)
downloadlinux-stable-9c6eb28aca52d562f3ffbaebaa56385df9972a43.tar.gz
linux-stable-9c6eb28aca52d562f3ffbaebaa56385df9972a43.tar.bz2
linux-stable-9c6eb28aca52d562f3ffbaebaa56385df9972a43.zip
netfilter: ipv6: add IPSKB_REROUTED exclusion to NF_HOOK/POSTROUTING invocation
Similar to how IPv4's ip_output.c works, have ip6_output also check the IPSKB_REROUTED flag. It will be set from xt_TEE for cloned packets since Xtables can currently only deal with a single packet in flight at a time. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Acked-by: David S. Miller <davem@davemloft.net> [Patrick: changed to use an IP6SKB value instead of IPSKB] Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ipv6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index e0cc9a7db2b5..7bdf6ffe2b49 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -250,6 +250,7 @@ struct inet6_skb_parm {
#define IP6SKB_XFRM_TRANSFORMED 1
#define IP6SKB_FORWARDED 2
+#define IP6SKB_REROUTED 4
};
#define IP6CB(skb) ((struct inet6_skb_parm*)((skb)->cb))