rust: RustParser same fields as AppLayerParser

So that there is no problem when crossing FFI
pull/7367/head
Philippe Antoine 4 years ago committed by Victor Julien
parent af745e4cc4
commit c78722a671

@ -247,7 +247,7 @@ pub struct RustParser {
pub default_port: *const c_char,
/// IP Protocol (core::IPPROTO_UDP, core::IPPROTO_TCP, etc.)
pub ipproto: c_int,
pub ipproto: u8,
/// Probing function, for packets going to server
pub probe_ts: Option<ProbeFn>,

@ -82,8 +82,8 @@ pub type AppProto = u16;
pub const ALPROTO_UNKNOWN : AppProto = 0;
pub static mut ALPROTO_FAILED : AppProto = 0; // updated during init
pub const IPPROTO_TCP : i32 = 6;
pub const IPPROTO_UDP : i32 = 17;
pub const IPPROTO_TCP : u8 = 6;
pub const IPPROTO_UDP : u8 = 17;
macro_rules!BIT_U8 {
($x:expr) => (1 << $x);

Loading…
Cancel
Save