]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream/event: New reassembly depth event
authorJeff Lucovsky <jlucovsky@oisf.net>
Tue, 12 Jul 2022 13:03:29 +0000 (09:03 -0400)
committerVictor Julien <vjulien@oisf.net>
Fri, 5 Aug 2022 17:51:06 +0000 (19:51 +0200)
Issue: 3512

This commit adds a stream event triggered when the stream assembly depth
is reached.

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

index 95fa1176db5ddcffef5275a22025b6e23391eedc..75b1d3c35247acbdfe732e2b4d8b9237499ceb60 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2013 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -836,6 +836,10 @@ const struct DecodeEvents_ DEvents[] = {
             "stream.reassembly_overlap_different_data",
             STREAM_REASSEMBLY_OVERLAP_DIFFERENT_DATA,
     },
+    {
+            "stream.reassembly_depth_reached",
+            STREAM_REASSEMBLY_DEPTH_REACHED,
+    },
 
     { NULL, 0 },
 };
index 8ec9123a8214160ed4ed0546b7d0c589142ee953..499c1a121a24132365dcc5ba1f6b42dff3814a7f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2013 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -287,6 +287,7 @@ enum {
     STREAM_REASSEMBLY_NO_SEGMENT,
     STREAM_REASSEMBLY_SEQ_GAP,
     STREAM_REASSEMBLY_OVERLAP_DIFFERENT_DATA,
+    STREAM_REASSEMBLY_DEPTH_REACHED,
 
     /* should always be last! */
     DECODE_EVENT_MAX,