Fix the stream.inline config option. Set PKT_STREAM_EST flag also for packets that are part of a session in a state beyond TCP_ESTABLISHED.

remotes/origin/master-1.1.x
Victor Julien 16 years ago
parent a8bb98836b
commit 8cacd5fe50

@ -429,7 +429,7 @@ void StreamTcpInitConfig(char quiet)
char *inl = NULL;
if ((ConfGet("stream.inline", &inl)) == 1) {
if (strncmp(csum, "yes", 3) == 0) {
if (strcasecmp(inl, "yes") == 0) {
stream_inline = 1;
}
}
@ -3281,7 +3281,7 @@ static int StreamTcpPacket (ThreadVars *tv, Packet *p, StreamTcpThread *stt,
break;
}
if (ssn->state == TCP_ESTABLISHED) {
if (ssn->state >= TCP_ESTABLISHED) {
p->flags |= PKT_STREAM_EST;
} else if (ssn->state > TCP_ESTABLISHED) {
p->flags |= PKT_STREAM_EOF;

Loading…
Cancel
Save