From 6a039ab316016d5d775e2b7e5588ec1faae08db6 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Tue, 12 Jul 2022 09:03:29 -0400 Subject: [PATCH] stream/event: New reassembly depth event Issue: 3512 This commit adds a stream event triggered when the stream assembly depth is reached. --- src/decode-events.c | 6 +++++- src/decode-events.h | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/decode-events.c b/src/decode-events.c index 95fa1176db..75b1d3c352 100644 --- a/src/decode-events.c +++ b/src/decode-events.c @@ -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 }, }; diff --git a/src/decode-events.h b/src/decode-events.h index 8ec9123a82..499c1a121a 100644 --- a/src/decode-events.h +++ b/src/decode-events.h @@ -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,