From e133ab029ee8fc05b64675e356e225c7fe16066e Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Tue, 12 Jul 2022 09:07:00 -0400 Subject: [PATCH] stream/event: Trigger stream reassembly event Issue: 3512 This commit triggers the stream reassembly depth reached event. --- src/stream-tcp-reassemble.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index bb793cf8e8..1a86e6cea7 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -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); } -- 2.47.2