From: Jeff Lucovsky Date: Sun, 15 Jun 2025 14:12:08 +0000 (-0400) Subject: detect/analyzer: Support u8 types X-Git-Tag: suricata-8.0.0~27 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e713cb45a37fa6e2145bfb7ca97668ab80b0c25;p=thirdparty%2Fsuricata.git detect/analyzer: Support u8 types Issue: 6359 Support JSON output of u8 types --- 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,