diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-04-09 22:14:58 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-09 22:14:58 (GMT) |
commit | 475959d4773e53a2700e523dd30acebbd47556a5 (patch) | |
tree | 67f1af04a4dd1f47f7002262b0230e5da3c97745 /net/ipv4/netfilter | |
parent | 1b9b70ea2ebaab26c3e4fed385dfab6fc16359ed (diff) | |
download | linux-fsl-qoriq-475959d4773e53a2700e523dd30acebbd47556a5.tar.xz |
[NETFILTER]: nf_nat: autoload IPv4 connection tracking
Without this patch, the generic L3 tracker would kick in
if nf_conntrack_ipv4 was not loaded before nf_nat, which
would lead to translation problems with ICMP errors.
NAT does not make sense without IPv4 connection tracking
anyway, so just add a call to need_ipv4_conntrack().
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c index 0d5fa3a..36b4e3b 100644 --- a/net/ipv4/netfilter/nf_nat_core.c +++ b/net/ipv4/netfilter/nf_nat_core.c @@ -629,6 +629,8 @@ static int __init nf_nat_init(void) size_t i; int ret; + need_ipv4_conntrack(); + ret = nf_ct_extend_register(&nat_extend); if (ret < 0) { printk(KERN_ERR "nf_nat_core: Unable to register extension\n"); |