]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: remove flags from StreamMsg
authorVictor Julien <victor@inliniac.net>
Tue, 17 Dec 2013 19:52:38 +0000 (20:52 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 15:21:55 +0000 (16:21 +0100)
src/stream-tcp-reassemble.c
src/stream.h

index d5a9dbcc2e8accfaf3f149aa29eec5ab00591cc1..3d8222d22b46bbd8642017f7338ef88152afd650 100644 (file)
@@ -1766,19 +1766,7 @@ static void StreamTcpSetupMsg(TcpSession *ssn, TcpStream *stream, Packet *p,
                               StreamMsg *smsg)
 {
     SCEnter();
-
-    smsg->flags = 0;
-
-    if (stream->ra_raw_base_seq == stream->isn) {
-        SCLogDebug("setting STREAM_START");
-        smsg->flags = STREAM_START;
-    }
-    if (stream->flags & STREAMTCP_STREAM_FLAG_CLOSE_INITIATED) {
-        SCLogDebug("setting STREAM_EOF");
-        smsg->flags |= STREAM_EOF;
-    }
     smsg->data_len = 0;
-
     SCLogDebug("smsg %p", smsg);
     SCReturn;
 }
index 4d4ccbaa590553c9b26fc9b49124b0bec5bf2271..2bdde69604b31e147b8cef9f605a1b8a8960129c 100644 (file)
@@ -37,8 +37,6 @@
 #define MSG_DATA_SIZE       4024 /* 4096 - 72 (size of rest of the struct) */
 
 typedef struct StreamMsg_ {
-    uint8_t flags;  /**< msg flags */
-
     struct StreamMsg_ *next;
     struct StreamMsg_ *prev;