[NETFILTER]: LOCAL_OUT NAT fix, part 2.
commit4125458a853fe47430ad5ade363ef1384665f0d5
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 2 Oct 2003 16:27:04 +0000 (2 09:27 -0700)
committerPatrick McHardy <kaber@coreworks.de>
Thu, 2 Oct 2003 16:27:04 +0000 (2 09:27 -0700)
tree3e5960c5e983f6d1fc684ced3a037a8a79109760
parent0379e92f17e62738fb7fc3c94830d18b792e92b2
[NETFILTER]: LOCAL_OUT NAT fix, part 2.

Balazs Scheidler pointed out that we can fail to call ip_nat_setup_info
for local NAT, which causes the connection to be added twice. Boom.
Also move the hash table insertion into ip_nat_setup_info.
include/linux/netfilter_ipv4/ip_nat_rule.h
net/ipv4/netfilter/ip_nat_core.c
net/ipv4/netfilter/ip_nat_rule.c
net/ipv4/netfilter/ip_nat_standalone.c