]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38e773486a01a5829f80702bce9e0448bb818a41
tree762c9819fbfeba1bedcdd4eb815bdd3cff4230be
parent3986ec91d9d2f9efe501520203264062c33d55be
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