]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: add check for l3slave for index returned in IP_PKTINFO
authorDavid Ahern <dsahern@gmail.com>
Sat, 12 Aug 2017 00:11:15 +0000 (17:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 03:05:13 +0000 (20:05 -0700)
commitaefd85ec8fa8c45348c1d52440ed1f636321d028
tree85e43990b22da13e99bb876186c17e0e39ea0483
parent74c3f787b4cf68d881eb2e63c2033075528ec704
net: ipv4: add check for l3slave for index returned in IP_PKTINFO

Similar to the loopback device, for packets sent through a VRF device
the index returned in ipi_ifindex needs to be the saved index in
rt_iif.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c