netfilter: ipv6: add IPSKB_REROUTED exclusion to NF_HOOK/POSTROUTING invocation
authorJan Engelhardt <jengelh@medozas.de>
Tue, 13 Apr 2010 13:32:16 +0000 (15:32 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 13 Apr 2010 13:32:16 +0000 (15:32 +0200)
commit9c6eb28aca52d562f3ffbaebaa56385df9972a43
tree775683fe8a8549274610872b44e4778c76195fa2
parent9e50849054a4824f06c66d2b449de21b98e03770
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>
include/linux/ipv6.h
net/ipv6/ip6_output.c