]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: process ASYNC in packet dir
authorVictor Julien <vjulien@oisf.net>
Sun, 26 May 2024 06:38:13 +0000 (08:38 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 4 Jun 2024 20:05:25 +0000 (22:05 +0200)
There will generally not be an opposing direction to handle
the app update.

src/stream-tcp-reassemble.c

index c310cd0e3df3054eda5d3c4c4b9c400d938e0ed5..b9e9e6797dd6e01f9ec3fcb87e27508883dadfc0 100644 (file)
@@ -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 */