From 39c8786a8ef2f146cfaff04929d3a19617933bfc Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 26 Sep 2016 01:25:32 +0200 Subject: [PATCH] flow: get bypass info in get used flow function --- src/flow-hash.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flow-hash.c b/src/flow-hash.c index a330101b99..79758fc701 100644 --- a/src/flow-hash.c +++ b/src/flow-hash.c @@ -661,6 +661,10 @@ static Flow *FlowGetUsedFlow(ThreadVars *tv, DecodeThreadVars *dtv) f->flow_end_flags |= FLOW_END_FLAG_STATE_ESTABLISHED; else if (state == FLOW_STATE_CLOSED) f->flow_end_flags |= FLOW_END_FLAG_STATE_CLOSED; + else if (state == FLOW_STATE_CAPTURE_BYPASSED) + f->flow_end_flags |= FLOW_END_FLAG_STATE_BYPASSED; + else if (state == FLOW_STATE_LOCAL_BYPASSED) + f->flow_end_flags |= FLOW_END_FLAG_STATE_BYPASSED; f->flow_end_flags |= FLOW_END_FLAG_FORCED;