From: Victor Julien Date: Sun, 26 May 2024 06:38:13 +0000 (+0200) Subject: stream: process ASYNC in packet dir X-Git-Tag: suricata-8.0.0-beta1~1200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c17df004ed609cd19e12c87b48cfce60bb016951;p=thirdparty%2Fsuricata.git stream: process ASYNC in packet dir There will generally not be an opposing direction to handle the app update. --- diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index c310cd0e3d..b9e9e6797d 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -1983,6 +1983,9 @@ int StreamTcpReassembleHandleSegment(ThreadVars *tv, TcpReassemblyThreadCtx *ra_ } } else if (ssn->state == TCP_CLOSED) { dir = UPDATE_DIR_BOTH; + } else if ((ssn->flags & STREAMTCP_FLAG_ASYNC) != 0) { + dir = UPDATE_DIR_PACKET; + SCLogDebug("%" PRIu64 ": ASYNC: UPDATE_DIR_PACKET", p->pcap_cnt); } /* handle ack received */