From 0f0cb5169f378614c753328e2d0396f5b9211a38 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Sun, 25 Apr 2021 09:20:54 -0400 Subject: [PATCH] decode/vntag: Add VNTag decoder logic --- src/decode.h | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.2