aboutsummaryrefslogtreecommitdiff
path: root/fs/internal.h
diff options
context:
space:
mode:
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>2007-07-14 20:45:41 -0700
committerDavid S. Miller <davem@davemloft.net>2007-07-14 20:45:41 -0700
commit130e7a83d7ec8c5c673225e0fa8ea37b1ed507a5 (patch)
tree35b4d5f60070309cb592b156590c1fb431e37ef6 /fs/internal.h
parente2a3123fbe58da9fd3f35cd242087896ace6049f (diff)
[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 'fs/internal.h')
0 files changed, 0 insertions, 0 deletions