• David Ahern's avatar
    net: ipv4: fix l3slave check for index returned in IP_PKTINFO · cbea8f02
    David Ahern authored
    rt_iif is only set to the actual egress device for the output path. The
    recent change to consider the l3slave flag when returning IP_PKTINFO
    works for local traffic (the correct device index is returned), but it
    broke the more typical use case of packets received from a remote host
    always returning the VRF index rather than the original ingress device.
    Update the fixup to consider l3slave and rt_iif actually getting set.
    
    Fixes: 1dfa7639 ("net: ipv4: add check for l3slave for index returned in IP_PKTINFO")
    Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    cbea8f02
ip_sockglue.c 36.6 KB