detect/analyzer: add more details for flow_age

Ticket: #6312
pull/12026/head
Alice Akaki 2 years ago committed by Victor Julien
parent 285cc29ec0
commit 5e563b0c8b

@ -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<u32>,
) -> bool {
return detect_uint_to_json(js, du).is_ok();
}

@ -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);

Loading…
Cancel
Save