]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
rust/applayer: add more externs
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 6 May 2021 12:01:04 +0000 (17:31 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 5 Aug 2021 15:05:34 +0000 (20:35 +0530)
rust/src/applayer.rs

index 4fbe714eb0eddb3032b1076fcfe6e685646c7764..f4a15b0c0b2b2b6b243009c6165d58603e037989 100644 (file)
@@ -295,7 +295,14 @@ pub unsafe fn AppLayerRegisterParser(parser: *const RustParser, alproto: AppProt
 
 // Defined in app-layer-detect-proto.h
 extern {
-    pub fn AppLayerProtoDetectPMRegisterPatternCSwPP(iproto: u8, alproto: AppProto,
+    pub fn AppLayerProtoDetectPPRegister(ipproto: u8, portstr: *const c_char, alproto: AppProto,
+                                         min_depth: u16, max_depth: u16, dir: u8,
+                                         pparser1: ProbeFn, pparser2: ProbeFn);
+    pub fn AppLayerProtoDetectPPParseConfPorts(ipproto_name: *const c_char, ipproto: u8,
+                                               alproto_name: *const c_char, alproto: AppProto,
+                                               min_depth: u16, max_depth: u16,
+                                               pparser_ts: ProbeFn, pparser_tc: ProbeFn) -> i32;
+    pub fn AppLayerProtoDetectPMRegisterPatternCSwPP(ipproto: 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;
@@ -323,6 +330,7 @@ pub type AppLayerGetTxIteratorFn = extern "C" fn (ipproto: u8,
 extern {
     pub fn AppLayerParserStateSetFlag(state: *mut c_void, flag: u8);
     pub fn AppLayerParserStateIssetFlag(state: *mut c_void, flag: u8) -> c_int;
+    pub fn AppLayerParserSetStreamDepth(ipproto: u8, alproto: AppProto, stream_depth: u32);
     pub fn AppLayerParserConfParserEnabled(ipproto: *const c_char, proto: *const c_char) -> c_int;
     pub fn AppLayerParserRegisterGetTxIterator(ipproto: u8, alproto: AppProto, fun: AppLayerGetTxIteratorFn);
     pub fn AppLayerParserRegisterOptionFlags(ipproto: u8, alproto: AppProto, flags: u32);