]> 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)
commitcff7f1d87cb7c85cf2ca91de1914bf8bb4bbe756
treedb094ff8fb661c8925a895b1eaae48afcf082cf9
parent51d99c229ec51874b973acc35f5d449ea2973855
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: b8ceeef2ca2c ("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