From deece44eaaeb8aa3ceb8c4e8295342cbf5389653 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 11 Sep 2024 21:11:09 +0200 Subject: [PATCH] eve/stream: add tcp-session-reuse trigger Can be used to log when the tcp session reuse logic triggers. --- src/output-eve-stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/output-eve-stream.c b/src/output-eve-stream.c index 4b44d86835..72cd196641 100644 --- a/src/output-eve-stream.c +++ b/src/output-eve-stream.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2023 Open Information Security Foundation +/* Copyright (C) 2023-2024 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 @@ -157,6 +157,7 @@ static OutputInitResult EveStreamLogInitCtxSub(ConfNode *conf, OutputCtx *parent ctx->trigger_flags |= SetFlag(conf, "state-update", STREAM_PKT_FLAG_STATE_UPDATE); ctx->trigger_flags |= SetFlag(conf, "spurious-retransmission", STREAM_PKT_FLAG_SPURIOUS_RETRANSMISSION); + ctx->trigger_flags |= SetFlag(conf, "tcp-session-reuse", STREAM_PKT_FLAG_TCP_PORT_REUSE); ctx->trigger_flags |= SetFlag(conf, "all", 0xFFFF); SCLogDebug("trigger_flags %04x", ctx->trigger_flags); -- 2.47.3