Fix ERSPAN encap to set EN bits in the header and add test case 49/10849/3
authorJohn Lo <loj@cisco.com>
Tue, 27 Feb 2018 21:35:03 +0000 (16:35 -0500)
committerNeale Ranns <nranns@cisco.com>
Thu, 1 Mar 2018 13:09:57 +0000 (13:09 +0000)
commit2bf8b8154d0e1707fbf8502eb8e85fdda885a8e5
tree24804592e3a4a738dfe306b468547ad9377c6541
parent3c6a976325f32f880b7e53f50ebe86fa0e8476c9
Fix ERSPAN encap to set EN bits in the header and add test case

For ERSPAN encap, both bits in the EN field of the header should
be set to indicate any VLAN tag in the original Ethernet frame is
preserved.
Added SPAN L2 test case where the mirrored packet output is a GRE
ERSPAN tunnel.

Change-Id: Ie7a40992a9278469c24aa6fa9e122b4505797d10
Signed-off-by: John Lo <loj@cisco.com>
src/vnet/gre/gre.c
src/vnet/gre/packet.h
test/patches/scapy-2.3.3/gre-layers.patch
test/test_span.py