Fix ERSPAN III optional sub-header parsing

This commit is contained in:
Jon Siwek 2020-03-27 15:07:18 -07:00
parent 85c6c2b9ee
commit 42dc2906af

View file

@ -471,7 +471,7 @@ void NetSessions::DoNextPacket(double t, const Packet* pkt, const IP_Hdr* ip_hdr
erspan_len = 12;
eth_len = 14;
auto flags = data + erspan_len - 1;
auto flags = data + gre_len + erspan_len - 1;
bool have_opt_header = ((*flags & 0x01) == 0x01);
if ( have_opt_header )