]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: nf_nat: fix ICMP translation with statically linked conntrack
authorPatrick McHardy <kaber@trash.net>
Fri, 26 Jan 2007 09:06:47 +0000 (01:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2007 09:06:47 +0000 (01:06 -0800)
commitef11a1a646b8b11f3de48762f3cacc0b5c985263
tree3e7369188a531b805908e1a200e76126af914af9
parent2e8f4f3133799813c75bc6155ea09ee1172dda04
[NETFILTER]: nf_nat: fix ICMP translation with statically linked conntrack

When nf_nat/nf_conntrack_ipv4 are linked statically, nf_nat is initialized
before nf_conntrack_ipv4, which makes the nf_ct_l3proto_find_get(AF_INET)
call during nf_nat initialization return the generic l3proto instead of
the AF_INET specific one. This breaks ICMP error translation since the
generic protocol always initializes the IPs in the tuple to 0.

Change the linking order and put nf_conntrack_ipv4 first.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/Makefile