erspan: fix invalid erspan version.
authorWilliam Tu <u9012063@gmail.com>
Thu, 17 May 2018 00:24:32 +0000 (17:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 19:48:49 +0000 (15:48 -0400)
commit02f99df1875c11330cd0be69a40fa8ccd14749b2
tree762c9819fbfeba1bedcdd4eb815bdd3cff4230be
parentd13d170cba8a68b7f25b4a01193b7014b7bc7a72
erspan: fix invalid erspan version.

ERSPAN only support version 1 and 2.  When packets send to an
erspan device which does not have proper version number set,
drop the packet.  In real case, we observe multicast packets
sent to the erspan pernet device, erspan0, which does not have
erspan version configured.

Reported-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c