From: Victor Julien Date: Wed, 11 Sep 2024 19:11:09 +0000 (+0200) Subject: eve/stream: add tcp-session-reuse trigger X-Git-Tag: suricata-8.0.0-beta1~596 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deece44eaaeb8aa3ceb8c4e8295342cbf5389653;p=thirdparty%2Fsuricata.git eve/stream: add tcp-session-reuse trigger Can be used to log when the tcp session reuse logic triggers. --- 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);