From d14e8ba7d329a0b8e1a0102b1409151810807949 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 30 Jun 2023 10:45:37 +0200 Subject: [PATCH] decode: fix offset for DCE layer Ticket: #3637 --- src/decode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/decode.h b/src/decode.h index 1a844525dafc..0627bea7f216 100644 --- a/src/decode.h +++ b/src/decode.h @@ -1202,7 +1202,8 @@ static inline bool DecodeNetworkLayer(ThreadVars *tv, DecodeThreadVars *dtv, if (unlikely(len < ETHERNET_DCE_HEADER_LEN)) { ENGINE_SET_INVALID_EVENT(p, DCE_PKT_TOO_SMALL); } else { - DecodeEthernet(tv, dtv, p, data, len); + // DCE layer is ethernet + 2 bytes, followed by another ethernet + DecodeEthernet(tv, dtv, p, data + 2, len - 2); } break; case ETHERNET_TYPE_VNTAG: