From: Jeff Lucovsky Date: Sun, 25 Apr 2021 13:20:54 +0000 (-0400) Subject: decode/vntag: Add VNTag decoder logic X-Git-Tag: suricata-7.0.0-beta1~1648 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f0cb5169f378614c753328e2d0396f5b9211a38;p=thirdparty%2Fsuricata.git decode/vntag: Add VNTag decoder logic --- diff --git a/src/decode.h b/src/decode.h index 26341a114d..f5b410349c 100644 --- a/src/decode.h +++ b/src/decode.h @@ -972,6 +972,7 @@ int DecodeSCTP(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint int DecodeESP(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint16_t); int DecodeGRE(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint32_t); int DecodeVLAN(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint32_t); +int DecodeVNTag(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint32_t); int DecodeIEEE8021ah(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint32_t); int DecodeGeneve(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint32_t); int DecodeVXLAN(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint32_t); @@ -1291,6 +1292,9 @@ static inline bool DecodeNetworkLayer(ThreadVars *tv, DecodeThreadVars *dtv, DecodeEthernet(tv, dtv, p, data, len); } break; + case ETHERNET_TYPE_VNTAG: + DecodeVNTag(tv, dtv, p, data, len); + break; case ETHERNET_TYPE_NSH: DecodeNSH(tv, dtv, p, data, len); break;