From 14ad853b94a866587fea321da392a316f67709d1 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 29 Apr 2011 13:30:36 +0200 Subject: [PATCH] Process a stream end pseudo packet when going from TIME_WAIT to CLOSED. --- src/stream-tcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 754de54d66..cf5f80cb8f 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -3197,6 +3197,8 @@ static int StreamTcpPacketStateTimeWait(ThreadVars *tv, Packet *p, SCLogDebug("ssn %p: =+ next SEQ %" PRIu32 ", last ACK " "%" PRIu32 "", ssn, ssn->client.next_seq, ssn->server.last_ack); + + StreamTcpPseudoPacketCreateStreamEndPacket(p, ssn, pq); } else { SCLogDebug("ssn %p: pkt (%" PRIu32 ") is to client: SEQ " "%" PRIu32 ", ACK %" PRIu32 "", ssn, p->payload_len, @@ -3237,6 +3239,8 @@ static int StreamTcpPacketStateTimeWait(ThreadVars *tv, Packet *p, SCLogDebug("ssn %p: =+ next SEQ %" PRIu32 ", last ACK " "%" PRIu32 "", ssn, ssn->server.next_seq, ssn->client.last_ack); + + StreamTcpPseudoPacketCreateStreamEndPacket(p, ssn, pq); } break; default: