gre: Check that the IP header is actually there before using it.
authorJesse Gross <jesse@nicira.com>
Tue, 23 Feb 2010 23:05:02 +0000 (18:05 -0500)
committerJesse Gross <jesse@nicira.com>
Fri, 5 Mar 2010 21:31:27 +0000 (16:31 -0500)
commit87036dbdea0cbebdd0869aefb9181817463350f0
tree8e08e023e2acf814b217a8bb0b1bf9b43b7be33a
parent2de320799d5b7981b17d1e46e5a07b86158e5ada
gre: Check that the IP header is actually there before using it.

GRE is nominally operating at layer 2 but it has some special
features for IP packets.  This checks that the IP header is present
before trying to read it.  If it is not there, we just disable the
special features but still process the packet.
datapath/linux-2.6/compat-2.6/ip_gre.c