diff --git a/rust/src/detect/uint.rs b/rust/src/detect/uint.rs index e4d827f014..84eb1d8b23 100644 --- a/rust/src/detect/uint.rs +++ b/rust/src/detect/uint.rs @@ -50,6 +50,13 @@ pub struct DetectUintData { pub mode: DetectUintMode, } +#[derive(Debug, PartialEq)] +pub(crate) enum DetectUintIndex { + Any, + All, + Index(i32), +} + /// Parses a string for detection with integers, using enumeration strings /// /// Needs to specify T1 the integer type (like u8) diff --git a/rust/src/ldap/detect.rs b/rust/src/ldap/detect.rs index dc0c30d0fc..44ece49ffb 100644 --- a/rust/src/ldap/detect.rs +++ b/rust/src/ldap/detect.rs @@ -18,8 +18,8 @@ use super::ldap::{LdapTransaction, ALPROTO_LDAP}; use crate::core::{STREAM_TOCLIENT, STREAM_TOSERVER}; use crate::detect::uint::{ - detect_match_uint, detect_parse_uint_enum, DetectUintData, SCDetectU32Free, SCDetectU32Parse, - SCDetectU8Free, + detect_match_uint, detect_parse_uint_enum, DetectUintData, DetectUintIndex, SCDetectU32Free, + SCDetectU32Parse, SCDetectU8Free, }; use crate::detect::{helper_keyword_register_sticky_buffer, SigTableElmtStickyBuffer}; use crate::ldap::types::*; @@ -36,13 +36,6 @@ use std::ffi::CStr; use std::os::raw::{c_int, c_void}; use std::str::FromStr; -#[derive(Debug, PartialEq)] -enum DetectUintIndex { - Any, - All, - Index(i32), -} - #[derive(Debug, PartialEq)] struct DetectLdapRespOpData { /// Ldap response operation code