diff --git a/rust/src/detect/tojson/mod.rs b/rust/src/detect/tojson/mod.rs index 2c552bcfa0bc..1a1f0cee8028 100644 --- a/rust/src/detect/tojson/mod.rs +++ b/rust/src/detect/tojson/mod.rs @@ -77,3 +77,10 @@ pub unsafe extern "C" fn SCDetectU16ToJson( ) -> bool { return detect_uint_to_json(js, du).is_ok(); } + +#[no_mangle] +pub unsafe extern "C" fn SCDetectU32ToJson( + js: &mut JsonBuilder, du: &DetectUintData, +) -> bool { + return detect_uint_to_json(js, du).is_ok(); +} \ No newline at end of file diff --git a/src/detect-engine-analyzer.c b/src/detect-engine-analyzer.c index 3d4d8991a32d..dcf3ce60a6a3 100644 --- a/src/detect-engine-analyzer.c +++ b/src/detect-engine-analyzer.c @@ -932,6 +932,13 @@ static void DumpMatches(RuleAnalyzer *ctx, JsonBuilder *js, const SigMatchData * jb_close(js); break; } + case DETECT_FLOW_AGE: { + const DetectU32Data *cd = (const DetectU32Data *)smd->ctx; + jb_open_object(js, "flow_age"); + SCDetectU32ToJson(js, cd); + jb_close(js); + break; + } } jb_close(js);