]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit9d1a6c4ea43e48c7880c85971c17939b56832d8a
treedb094ff8fb661c8925a895b1eaae48afcf082cf9
parentfd6f24d75ab07fd122c2910d343caa703f712873
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: 613d09b30f8b ("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