]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/analyzer: Support u8 types
authorJeff Lucovsky <jlucovsky@oisf.net>
Sun, 15 Jun 2025 14:12:08 +0000 (10:12 -0400)
committerVictor Julien <victor@inliniac.net>
Fri, 27 Jun 2025 02:11:49 +0000 (04:11 +0200)
Issue: 6359

Support JSON output of u8 types

rust/src/detect/tojson/mod.rs

index 747a1b398b11a006051442aa2bd65ad261b65102..1ad8a504dbe199914f8dad4af384d4faf2c23194 100644 (file)
@@ -73,6 +73,13 @@ where
     Ok(())
 }
 
+#[no_mangle]
+pub unsafe extern "C" fn SCDetectU8ToJson(
+    js: &mut JsonBuilder, du: &DetectUintData<u8>,
+) -> bool {
+    return detect_uint_to_json(js, du).is_ok();
+}
+
 #[no_mangle]
 pub unsafe extern "C" fn SCDetectU16ToJson(
     js: &mut JsonBuilder, du: &DetectUintData<u16>,