summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/aquantia/atlantic
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2022-01-22 14:40:56 +0300
committerDavid S. Miller <davem@davemloft.net>2022-01-24 15:30:12 +0300
commit2afc3b5a31f9edf3ef0f374f5d70610c79c93a42 (patch)
tree32fbef06c8c71196a301f4c37cf8671cf71ef0d3 /drivers/net/ethernet/aquantia/atlantic
parentc0bf3d8a943b6f2e912b7c1de03e2ef28e76f760 (diff)
downloadlinux-2afc3b5a31f9edf3ef0f374f5d70610c79c93a42.tar.xz
ping: fix the sk_bound_dev_if match in ping_lookup
When 'ping' changes to use PING socket instead of RAW socket by: # sysctl -w net.ipv4.ping_group_range="0 100" the selftests 'router_broadcast.sh' will fail, as such command # ip vrf exec vrf-h1 ping -I veth0 198.51.100.255 -b can't receive the response skb by the PING socket. It's caused by mismatch of sk_bound_dev_if and dif in ping_rcv() when looking up the PING socket, as dif is vrf-h1 if dif's master was set to vrf-h1. This patch is to fix this regression by also checking the sk_bound_dev_if against sdif so that the packets can stil be received even if the socket is not bound to the vrf device but to the real iif. Fixes: c319b4d76b9e ("net: ipv4: add IPPROTO_ICMP socket kind") Reported-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic')
0 files changed, 0 insertions, 0 deletions