From: Victor Julien Date: Thu, 21 Jun 2018 12:18:02 +0000 (+0200) Subject: rust: define all STREAM_* types X-Git-Tag: suricata-4.1.0-rc1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=905d9a1dd8135033bee90b133b81729bf04a8219;p=thirdparty%2Fsuricata.git rust: define all STREAM_* types --- diff --git a/rust/src/core.rs b/rust/src/core.rs index c3fd4d493a..c529f57d19 100644 --- a/rust/src/core.rs +++ b/rust/src/core.rs @@ -32,8 +32,13 @@ pub const APP_LAYER_EVENT_TYPE_TRANSACTION : i32 = 1; pub const APP_LAYER_EVENT_TYPE_PACKET : i32 = 2; // From stream.h. +pub const STREAM_START: u8 = 0x01; +pub const STREAM_EOF: u8 = 0x02; pub const STREAM_TOSERVER: u8 = 0x04; pub const STREAM_TOCLIENT: u8 = 0x08; +pub const STREAM_GAP: u8 = 0x10; +pub const STREAM_DEPTH: u8 = 0x20; +pub const STREAM_MIDSTREAM:u8 = 0x40; // Application layer protocol identifiers (app-layer-protos.h) pub type AppProto = libc::c_int;