]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow-manager: no force reassembly on bypassed flow
authorEric Leblond <eric@regit.org>
Sat, 14 Jul 2018 20:37:03 +0000 (22:37 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2019 05:07:01 +0000 (07:07 +0200)
When a bypassed flow is created we are forcing the reassembly so
we don't need to do it again when it timeout.

src/flow-manager.c

index 97166fdb9a42a848517b0c2041133fba7964e100..d279bb9734b411721b7c1803b436177bcb54c2ae 100644 (file)
@@ -275,6 +275,8 @@ static int FlowManagerFlowTimedOut(Flow *f, struct timeval *ts)
     int server = 0, client = 0;
 
     if (!(f->flags & FLOW_TIMEOUT_REASSEMBLY_DONE) &&
+            SC_ATOMIC_GET(f->flow_state) != FLOW_STATE_CAPTURE_BYPASSED &&
+            SC_ATOMIC_GET(f->flow_state) != FLOW_STATE_LOCAL_BYPASSED &&
             FlowForceReassemblyNeedReassembly(f, &server, &client) == 1) {
         FlowForceReassemblyForFlow(f, server, client);
         return 0;