]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/detect: extend visibility of SIGMATH_NOOPT
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 23 Jan 2025 09:18:09 +0000 (10:18 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 29 Mar 2025 05:38:00 +0000 (06:38 +0100)
so that it can be used by plugins

Avoid export by cbindgen as this constant is also defined in C

rust/cbindgen.toml
rust/src/detect/mod.rs

index 6e9954990ab601ad3e85bd85e2816b9c161d4baf..b8b88676e6dc705e51665168b0f88040ceef7efa 100644 (file)
@@ -114,6 +114,8 @@ exclude = [
     "IPPROTO_TCP",
     "IPPROTO_UDP",
     "SRepCatGetByShortname",
+    "SIGMATCH_NOOPT",
+    "SIGMATCH_INFO_STICKY_BUFFER",
 ]
 
 # Types of items that we'll generate. If empty, then all types of item are emitted.
index 9a5de6dad8488af33b6083b68b90eae5af5f23f3..3a3f6f74a7e4c4d37c019cae56565228e26caf25 100644 (file)
@@ -79,9 +79,9 @@ pub struct SCSigTableElmt {
     >,
 }
 
-pub(crate) const SIGMATCH_NOOPT: u16 = 1; // BIT_U16(0) in detect.h
+pub const SIGMATCH_NOOPT: u16 = 1; // BIT_U16(0) in detect.h
 pub(crate) const SIGMATCH_QUOTES_MANDATORY: u16 = 0x40; // BIT_U16(6) in detect.h
-pub(crate) const SIGMATCH_INFO_STICKY_BUFFER: u16 = 0x200; // BIT_U16(9)
+pub const SIGMATCH_INFO_STICKY_BUFFER: u16 = 0x200; // BIT_U16(9)
 
 /// cbindgen:ignore
 extern {