From: Jeff Lucovsky Date: Sun, 25 Apr 2021 13:20:54 +0000 (-0400) Subject: decode/vntag: Add VNTag decoder logic X-Git-Tag: suricata-6.0.3~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3a105fe905cfa5cacf11263d4e6b614171ff2e3;p=thirdparty%2Fsuricata.git decode/vntag: Add VNTag decoder logic (cherry picked from commit 0f0cb5169f378614c753328e2d0396f5b9211a38) --- diff --git a/src/decode.h b/src/decode.h index 136fbcb81a..c65dd25b33 100644 --- a/src/decode.h +++ b/src/decode.h @@ -961,6 +961,7 @@ int DecodeUDP(ThreadVars *, DecodeThreadVars *, Packet *, const uint8_t *, uint1 int DecodeSCTP(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); @@ -1280,6 +1281,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; default: SCLogDebug("unknown ether type: %" PRIx16 "", proto); return false;