From: Shivani Bhardwaj Date: Wed, 18 Jan 2023 00:53:13 +0000 (+0530) Subject: decode/events: add event type UDP_LEN_INVALID X-Git-Tag: suricata-6.0.10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbd53bcdf63fe866bede107bfc275c03d00cd547;p=thirdparty%2Fsuricata.git decode/events: add event type UDP_LEN_INVALID (cherry picked from commit eebdfe9a3e46be0508ff636db0fc514a4f922656) --- diff --git a/src/decode-events.c b/src/decode-events.c index a4ec4e697b..aae2e464aa 100644 --- a/src/decode-events.c +++ b/src/decode-events.c @@ -270,6 +270,10 @@ const struct DecodeEvents_ DEvents[] = { "decoder.udp.hlen_invalid", UDP_HLEN_INVALID, }, + { + "decoder.udp.len_invalid", + UDP_LEN_INVALID, + }, /* SLL EVENTS */ { diff --git a/src/decode-events.h b/src/decode-events.h index b82fa235d8..8d0ee4a55e 100644 --- a/src/decode-events.h +++ b/src/decode-events.h @@ -103,6 +103,7 @@ enum { UDP_PKT_TOO_SMALL, /**< udp packet smaller than minimum size */ UDP_HLEN_TOO_SMALL, /**< udp header smaller than minimum size */ UDP_HLEN_INVALID, /**< invalid len of upd header */ + UDP_LEN_INVALID, /**< packet len in header is invalid */ /* SLL EVENTS */ SLL_PKT_TOO_SMALL, /**< sll packet smaller than minimum size */