• Eric Dumazet's avatar
    tcp: early_demux fixes · 9cb429d6
    Eric Dumazet authored
    1) Remove a non needed pskb_may_pull() in tcp_v4_early_demux()
       and fix a potential bug if skb->head was reallocated
       (iph & th pointers were not reloaded)
    
    TCP stack will pull/check headers anyway.
    
    2) must reload iph in ip_rcv_finish() after early_demux()
     call since skb->head might have changed.
    
    3) skb->dev->ifindex can be now replaced by skb->skb_iif
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9cb429d6
ip_input.c 13.1 KB