]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: define all STREAM_* types
authorVictor Julien <victor@inliniac.net>
Thu, 21 Jun 2018 12:18:02 +0000 (14:18 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 13 Jul 2018 07:10:28 +0000 (09:10 +0200)
rust/src/core.rs

index c3fd4d493afb3565d87a14d4ea0b65383d47cd89..c529f57d19b4c67486a6a70e6a17c953dde2b741 100644 (file)
@@ -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;