]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: flags cleanup
authorVictor Julien <victor@inliniac.net>
Fri, 11 Apr 2014 15:24:12 +0000 (17:24 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 22 Apr 2014 08:19:42 +0000 (10:19 +0200)
Stream flags are 16bit, but notation is still 8bit. Clean this up to
avoid confusion.

src/stream-tcp-private.h

index a97b0469a5046a3d65415eb76fe2e99fbb760199..7f576396c1d5fe584a85c7f75434f417aff6e1ea 100644 (file)
@@ -147,24 +147,24 @@ enum
  */
 
 /** stream is in a gap state */
-#define STREAMTCP_STREAM_FLAG_GAP               0x01
+#define STREAMTCP_STREAM_FLAG_GAP               0x0001
 /** Flag to avoid stream reassembly/app layer inspection for the stream */
-#define STREAMTCP_STREAM_FLAG_NOREASSEMBLY      0x02
+#define STREAMTCP_STREAM_FLAG_NOREASSEMBLY      0x0002
 /** we received a keep alive */
-#define STREAMTCP_STREAM_FLAG_KEEPALIVE         0x04
+#define STREAMTCP_STREAM_FLAG_KEEPALIVE         0x0004
 /** Stream has reached it's reassembly depth, all further packets are ignored */
-#define STREAMTCP_STREAM_FLAG_DEPTH_REACHED     0x08
+#define STREAMTCP_STREAM_FLAG_DEPTH_REACHED     0x0008
 /** Stream has sent a FIN/RST */
-#define STREAMTCP_STREAM_FLAG_CLOSE_INITIATED   0x10
+#define STREAMTCP_STREAM_FLAG_CLOSE_INITIATED   0x0010
 /** Stream supports TIMESTAMP -- used to set ssn STREAMTCP_FLAG_TIMESTAMP
  *  flag. */
-#define STREAMTCP_STREAM_FLAG_TIMESTAMP         0x20
+#define STREAMTCP_STREAM_FLAG_TIMESTAMP         0x0020
 /** Flag to indicate the zero value of timestamp */
-#define STREAMTCP_STREAM_FLAG_ZERO_TIMESTAMP    0x40
+#define STREAMTCP_STREAM_FLAG_ZERO_TIMESTAMP    0x0040
 /** App proto detection completed */
-#define STREAMTCP_STREAM_FLAG_APPPROTO_DETECTION_COMPLETED 0x80
+#define STREAMTCP_STREAM_FLAG_APPPROTO_DETECTION_COMPLETED 0x0080
 /** App proto detection skipped */
-#define STREAMTCP_STREAM_FLAG_APPPROTO_DETECTION_SKIPPED 0x100
+#define STREAMTCP_STREAM_FLAG_APPPROTO_DETECTION_SKIPPED 0x0100
 
 /*
  * Per SEGMENT flags