From 1745408c139214033396154215cbf24490e56bf5 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sat, 14 Jul 2018 22:37:03 +0200 Subject: [PATCH] flow-manager: no force reassembly on bypassed flow 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flow-manager.c b/src/flow-manager.c index 97166fdb9a..d279bb9734 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -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;