ipv4: early demux should be aware of fragments
authorEric Dumazet <edumazet@google.com>
Wed, 27 Jan 2016 00:59:42 +0000 (16:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jan 2016 20:14:20 +0000 (15:14 -0500)
commit63e51b6a24f1bee5363056b7aee3a468b12c546b
tree899fb9c04578375e57616076654ab4dd528b4cc4
parentb64438853f4c29f2235124a1c879b5e242d1ae19
ipv4: early demux should be aware of fragments

We should not assume a valid protocol header is present,
as this is not the case for IPv4 fragments.

Lets avoid extra cache line misses and potential bugs
if we actually find a socket and incorrectly uses its dst.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_input.c