From b7849c23bf5986661c7ac9edbdddd146c7483150 Mon Sep 17 00:00:00 2001 From: Daniel Olatunji Date: Thu, 12 Oct 2023 21:53:03 +0000 Subject: [PATCH] detect/analyzer: add more details for the tcp ack keyword Issue: #6354 Added the DETECT_ACK case to detect-engine-analyzer.c --- src/detect-engine-analyzer.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/detect-engine-analyzer.c b/src/detect-engine-analyzer.c index a37afabb0f00..e2da86b8a55a 100644 --- a/src/detect-engine-analyzer.c +++ b/src/detect-engine-analyzer.c @@ -45,6 +45,7 @@ #include "util-time.h" #include "util-validate.h" #include "util-conf.h" +#include "detect-tcp-ack.h" static int rule_warnings_only = 0; @@ -861,6 +862,14 @@ static void DumpMatches(RuleAnalyzer *ctx, JsonBuilder *js, const SigMatchData * jb_close(js); break; } + case DETECT_ACK: { + const DetectAckData *cd = (const DetectAckData *)smd->ctx; + + jb_open_object(js, "ack"); + jb_set_uint(js, "ack", cd->ack); + jb_close(js); + break; + } } jb_close(js);