From 7e713cb45a37fa6e2145bfb7ca97668ab80b0c25 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Sun, 15 Jun 2025 10:12:08 -0400 Subject: [PATCH] detect/analyzer: Support u8 types Issue: 6359 Support JSON output of u8 types --- rust/src/detect/tojson/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rust/src/detect/tojson/mod.rs b/rust/src/detect/tojson/mod.rs index 747a1b398b..1ad8a504db 100644 --- a/rust/src/detect/tojson/mod.rs +++ b/rust/src/detect/tojson/mod.rs @@ -73,6 +73,13 @@ where Ok(()) } +#[no_mangle] +pub unsafe extern "C" fn SCDetectU8ToJson( + js: &mut JsonBuilder, du: &DetectUintData, +) -> bool { + return detect_uint_to_json(js, du).is_ok(); +} + #[no_mangle] pub unsafe extern "C" fn SCDetectU16ToJson( js: &mut JsonBuilder, du: &DetectUintData, -- 2.47.2