]> git.baikalelectronics.ru Git - kernel.git/commit
net: icmp_route_lookup should use rt dev to determine L3 domain
authorDavid Ahern <dsa@cumulusnetworks.com>
Mon, 7 Nov 2016 20:03:09 +0000 (12:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 23:49:39 +0000 (18:49 -0500)
commit89df49ab51c4de1850d05aa620c9a2b61f4a66a8
treedb094ff8fb661c8925a895b1eaae48afcf082cf9
parente1b1780b4d3908d13f45286f93cae49ef4640d10
net: icmp_route_lookup should use rt dev to determine L3 domain

icmp_send is called in response to some event. The skb may not have
the device set (skb->dev is NULL), but it is expected to have an rt.
Update icmp_route_lookup to use the rt on the skb to determine L3
domain.

Fixes: fe72c20b1eac ("net: Use VRF device index for lookups on TX")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c