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

This commit triggers the stream reassembly depth reached event.

src/stream-tcp-reassemble.c

index bb793cf8e830dd632e624bb9e113bdf560d1e7e9..1a86e6cea702bd0b64079612ea709e93d6b3f9e1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2021 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
@@ -732,6 +732,7 @@ int StreamTcpReassembleHandleSegmentHandleData(ThreadVars *tv, TcpReassemblyThre
     SCLogDebug("ssn %p: check depth returned %"PRIu32, ssn, size);
 
     if (stream->flags & STREAMTCP_STREAM_FLAG_DEPTH_REACHED) {
+        StreamTcpSetEvent(p, STREAM_REASSEMBLY_DEPTH_REACHED);
         /* increment stream depth counter */
         StatsIncr(tv, ra_ctx->counter_tcp_stream_depth);
     }