]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] ICMP: Fix icmp_errors_use_inbound_ifaddr sysctl
authorDavid Miller <davem@davemloft.net>
Thu, 7 Jun 2007 05:38:11 +0000 (22:38 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Jun 2007 18:37:11 +0000 (11:37 -0700)
commit92b0de8f745ed946c1521ed96ff1dd8f6ff7b466
tree44990dfea4827fc4e378bee82c705a0fd8bb9061
parentd6ecd0775fe06a3722eb83c7e731f2f4abd1585d
[PATCH] 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: Chris Wright <chrisw@sous-sol.org>
net/ipv4/icmp.c