From d66ad96f0d4d5e512cf941e4b9e7651011a74d54 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Wed, 5 May 2021 15:57:51 +0530 Subject: [PATCH] applayer/rust: add extern AppLayerProtoDetectPMRegisterPatternCSwPP --- rust/src/applayer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/src/applayer.rs b/rust/src/applayer.rs index 31c18c77af..2660504c37 100644 --- a/rust/src/applayer.rs +++ b/rust/src/applayer.rs @@ -300,6 +300,10 @@ pub unsafe fn AppLayerRegisterParser(parser: *const RustParser, alproto: AppProt // Defined in app-layer-detect-proto.h extern { + pub fn AppLayerProtoDetectPMRegisterPatternCSwPP(iproto: u8, alproto: AppProto, + pattern: *const c_char, depth: u16, + offset: u16, direction: u8, ppfn: ProbeFn, + pp_min_depth: u16, pp_max_depth: u16) -> c_int; pub fn AppLayerProtoDetectConfProtoDetectionEnabled(ipproto: *const c_char, proto: *const c_char) -> c_int; }