From: Pierre Chifflier Date: Mon, 15 Jan 2018 21:51:39 +0000 (+0100) Subject: Rust: expose function AppLayerParserStateSetFlag X-Git-Tag: suricata-4.1.0-rc1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e8f0db19216ad1297a0a2442c79364b471a8ce0;p=thirdparty%2Fsuricata.git Rust: expose function AppLayerParserStateSetFlag --- diff --git a/rust/src/parser.rs b/rust/src/parser.rs index 8ac513408a..efee0c4c45 100644 --- a/rust/src/parser.rs +++ b/rust/src/parser.rs @@ -153,6 +153,13 @@ extern { } // Defined in app-layer-parser.h +pub const APP_LAYER_PARSER_EOF : u8 = 0b0; +pub const APP_LAYER_PARSER_NO_INSPECTION : u8 = 0b1; +pub const APP_LAYER_PARSER_NO_REASSEMBLY : u8 = 0b10; +pub const APP_LAYER_PARSER_NO_INSPECTION_PAYLOAD : u8 = 0b100; +pub const APP_LAYER_PARSER_BYPASS_READY : u8 = 0b1000; + extern { + pub fn AppLayerParserStateSetFlag(state: *mut c_void, flag: u8); pub fn AppLayerParserConfParserEnabled(ipproto: *const c_char, proto: *const c_char) -> c_int; }