]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[ICMP]: Fix icmp_errors_use_inbound_ifaddr sysctl
authorPatrick McHardy <kaber@trash.net>
Fri, 2 Nov 2007 21:42:48 +0000 (22:42 +0100)
committerAdrian Bunk <bunk@kernel.org>
Fri, 2 Nov 2007 21:42:48 +0000 (22:42 +0100)
commit464aa9b9720276ed68162bbd86e346538e515c59
tree65c56cafb40fc6bc27143d64c8486b8e4157cb1a
parent9ebf0663c8af671f9d37f9d51eb80e26a5b1fe2b
[ICMP]: Fix icmp_errors_use_inbound_ifaddr sysctl

Currently when icmp_errors_use_inbound_ifaddr is set and an ICMP error is
sent after the packet passed through ip_output(), an address from the
outgoing interface is chosen as ICMP source address since skb->dev doesn't
point to the incoming interface anymore.

Fix this by doing an interface lookup on rt->dst.iif and using that device.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
net/ipv4/icmp.c