]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode/events: add event type UDP_LEN_INVALID
authorShivani Bhardwaj <shivani@oisf.net>
Wed, 18 Jan 2023 00:53:13 +0000 (06:23 +0530)
committerVictor Julien <vjulien@oisf.net>
Mon, 30 Jan 2023 12:48:11 +0000 (13:48 +0100)
(cherry picked from commit eebdfe9a3e46be0508ff636db0fc514a4f922656)

src/decode-events.c
src/decode-events.h

index a4ec4e697b771c5a9b3faab0cdcd82887d7f2146..aae2e464aafda6304e165b11b0bb460c055cc7b0 100644 (file)
@@ -270,6 +270,10 @@ const struct DecodeEvents_ DEvents[] = {
             "decoder.udp.hlen_invalid",
             UDP_HLEN_INVALID,
     },
+    {
+            "decoder.udp.len_invalid",
+            UDP_LEN_INVALID,
+    },
 
     /* SLL EVENTS */
     {
index b82fa235d88060dba46cae38a2423125b7042343..8d0ee4a55ed15902b32abb415e4b205a0a8262f8 100644 (file)
@@ -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 */