Skip to content

Commit

Permalink
flow: make excp policy work w simulated flowmemcap
Browse files Browse the repository at this point in the history
Related to
Task OISF#5816
  • Loading branch information
jufajardini committed Mar 30, 2023
1 parent f710fc5 commit 2f92f75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flow-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ static Flow *FlowGetNew(ThreadVars *tv, FlowLookupStruct *fls, Packet *p)
const bool emerg = ((SC_ATOMIC_GET(flow_flags) & FLOW_EMERGENCY) != 0);
#ifdef DEBUG
if (g_eps_flow_memcap != UINT64_MAX && g_eps_flow_memcap == p->pcap_cnt) {
NoFlowHandleIPS(p);
return NULL;
}
#endif
Expand Down

0 comments on commit 2f92f75

Please sign in to comment.