diff options
author | Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> | 2007-07-15 03:45:41 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-15 03:45:41 (GMT) |
commit | 130e7a83d7ec8c5c673225e0fa8ea37b1ed507a5 (patch) | |
tree | 35b4d5f60070309cb592b156590c1fb431e37ef6 /net/bridge/netfilter/ebtables.c | |
parent | e2a3123fbe58da9fd3f35cd242087896ace6049f (diff) | |
download | linux-fsl-qoriq-130e7a83d7ec8c5c673225e0fa8ea37b1ed507a5.tar.xz |
[NETFILTER]: nf_conntrack: Don't track locally generated special ICMP error
The conntrack assigned to locally generated ICMP error is usually the one
assigned to the original packet which has caused the error. But if
the original packet is handled as invalid by nf_conntrack, no conntrack
is assigned to the original packet. Then nf_ct_attach() cannot assign
any conntrack to the ICMP error packet. In that case the current
nf_conntrack_icmp assigns appropriate conntrack to it. But the current
code mistakes the direction of the packet. As a result, NAT code mistakes
the address to be mangled.
To fix the bug, this changes nf_conntrack_icmp not to assign conntrack
to such ICMP error. Actually no address is necessary to be mangled
in this case.
Spotted by Jordan Russell.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/netfilter/ebtables.c')
0 files changed, 0 insertions, 0 deletions