return true;
}
+#ifdef CAPTURE_OFFLOAD
/** \internal
* \brief check timeout of captured bypassed flow by querying capture method
*
*/
static inline bool FlowBypassedTimeout(Flow *f, SCTime_t ts, FlowTimeoutCounters *counters)
{
-#ifdef CAPTURE_OFFLOAD
if (f->flow_state != FLOW_STATE_CAPTURE_BYPASSED) {
return true;
}
}
counters->bypassed_count++;
}
-#endif /* CAPTURE_OFFLOAD */
return true;
}
+#endif /* CAPTURE_OFFLOAD */
typedef struct FlowManagerTimeoutThread {
/* used to temporarily store flows that have timed out and are
Flow *next_flow = f->next;
+#ifdef CAPTURE_OFFLOAD
/* never prune a flow that is used by a packet we
* are currently processing in one of the threads */
if (!FlowBypassedTimeout(f, ts, counters)) {
f = f->next;
continue;
}
-
+#endif
f->flow_end_flags |= FLOW_END_FLAG_TIMEOUT;
counters->flows_timeout++;