Skip to content

Commit

Permalink
decode: fix offset for DCE layer
Browse files Browse the repository at this point in the history
Fixes: 136d351 ("decode: single network layer entrypoint")

Ticket: #3637
  • Loading branch information
catenacyber committed Jul 19, 2023
1 parent 9a33c53 commit fdf9cdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/decode.h
Expand Up @@ -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:
Expand Down

0 comments on commit fdf9cdf

Please sign in to comment.