• Benjamin LaHaise's avatar
    net/core: dev_forward_skb() should clear skb_iif · 3b9785c6
    Benjamin LaHaise authored
    While investigating another bug, I found that the code on the incoming path
    in __netif_receive_skb will only set skb->skb_iif if it is already 0.  When
    dev_forward_skb() is used in the case of interfaces like veth, skb_iif may
    already have been set.  Making dev_forward_skb() cause the packet to look
    like a newly received packet would seem to the the correct behaviour here,
    as otherwise the wrong incoming interface can be reported for such a packet.
    Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3b9785c6
dev.c 161 KB