Skip to content

Commit

Permalink
detect/analyzer: add more details for tcp_mss
Browse files Browse the repository at this point in the history
Issue: #6355
  • Loading branch information
catenacyber committed Apr 14, 2024
1 parent 49caf00 commit bd3bed6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/detect-engine-analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "detect-engine.h"
#include "detect-engine-analyzer.h"
#include "detect-engine-mpm.h"
#include "detect-engine-uint.h"
#include "conf.h"
#include "detect-content.h"
#include "detect-pcre.h"
Expand Down Expand Up @@ -915,12 +916,18 @@ static void DumpMatches(RuleAnalyzer *ctx, JsonBuilder *js, const SigMatchData *
}
case DETECT_SEQ: {
const DetectSeqData *cd = (const DetectSeqData *)smd->ctx;

jb_open_object(js, "seq");
jb_set_uint(js, "number", cd->seq);
jb_close(js);
break;
}
case DETECT_TCPMSS: {
const DetectU16Data *cd = (const DetectU16Data *)smd->ctx;
jb_open_object(js, "tcp_mss");
SCDetectU16ToJson(js, cd);
jb_close(js);
break;
}
}
jb_close(js);

Expand Down

0 comments on commit bd3bed6

Please sign in to comment.