|
|
|
@ -459,6 +459,7 @@ pub type GetFrameNameById = unsafe extern "C" fn(u8) -> *const c_char;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Defined in app-layer-register.h
|
|
|
|
|
/// cbindgen:ignore
|
|
|
|
|
extern {
|
|
|
|
|
pub fn AppLayerRegisterProtocolDetection(parser: *const RustParser, enable_default: c_int) -> AppProto;
|
|
|
|
|
pub fn AppLayerRegisterParserAlias(parser_name: *const c_char, alias_name: *const c_char);
|
|
|
|
@ -470,6 +471,7 @@ pub unsafe fn AppLayerRegisterParser(parser: *const RustParser, alproto: AppProt
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Defined in app-layer-detect-proto.h
|
|
|
|
|
/// cbindgen:ignore
|
|
|
|
|
extern {
|
|
|
|
|
pub fn AppLayerForceProtocolChange(f: *const Flow, new_proto: AppProto);
|
|
|
|
|
pub fn AppLayerProtoDetectPPRegister(ipproto: u8, portstr: *const c_char, alproto: AppProto,
|
|
|
|
@ -506,6 +508,7 @@ pub const APP_LAYER_PARSER_OPT_ACCEPT_GAPS: u32 = BIT_U32!(0);
|
|
|
|
|
|
|
|
|
|
pub const APP_LAYER_TX_SKIP_INSPECT_FLAG: u64 = BIT_U64!(62);
|
|
|
|
|
|
|
|
|
|
/// cbindgen:ignore
|
|
|
|
|
extern {
|
|
|
|
|
pub fn AppLayerParserStateSetFlag(state: *mut c_void, flag: u16);
|
|
|
|
|
pub fn AppLayerParserStateIssetFlag(state: *mut c_void, flag: u16) -> u16;
|
|
|
|
|