rust/detect: move DetectUintIndex definition to generic file

Ticket: 7480

No behavior change, just code restyling
pull/13878/head
Philippe Antoine 1 year ago committed by Victor Julien
parent ef6ce7d701
commit e01d19889e

@ -50,6 +50,13 @@ pub struct DetectUintData<T> {
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)

@ -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

Loading…
Cancel
Save