]> git.baikalelectronics.ru Git - kernel.git/commit
net: icmp6_send should use dst dev to determine L3 domain
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 3 Nov 2016 23:17:26 +0000 (16:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Nov 2016 01:30:19 +0000 (20:30 -0500)
commitfc8b3c23ae843ca9e9c8d1ce0099dd181e4092de
tree5ef69732c3dde441072fc8836f52c5da32317d7d
parentfb97cc33a7ac5bef7264e5a5c0cc4eaa09977809
net: icmp6_send should use dst dev to determine L3 domain

icmp6_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 a dst set.
Update icmp6_send to use the dst on the skb to determine L3 domain.

Fixes: 4a62c55aed661 ("net: Add VRF support to IPv6 stack")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/icmp.c