]> 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)
commit09e31971490b09aa5c2586a6e5d4d9b235851031
tree85e43990b22da13e99bb876186c17e0e39ea0483
parent6040aec118b33d53a0b78f2caa76c27b74db1cf0
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