]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ip: report the original address of ICMP messages
authorJulian Anastasov <ja@ssi.bg>
Tue, 23 Jun 2015 05:34:39 +0000 (08:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2015 16:49:30 +0000 (09:49 -0700)
commit66634bb1c4f1eda70583eddaf8c5e980f05a8fb9
tree71e4b98e69cc5533b43fd58da11c3eaa57ef825f
parent6fc8b947b364ceb6d91e5b6f3e3d22cd9a013ac0
ip: report the original address of ICMP messages

[ Upstream commit 34b99df4e6256ddafb663c6de0711dceceddfe0e ]

ICMP messages can trigger ICMP and local errors. In this case
serr->port is 0 and starting from Linux 4.0 we do not return
the original target address to the error queue readers.
Add function to define which errors provide addr_offset.
With this fix my ping command is not silent anymore.

Fixes: c247f0534cc5 ("ip: fix error queue empty skb handling")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_sockglue.c
net/ipv6/datagram.c