suricata
flow-manager.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FlowTimeoutsReset()   FlowTimeoutsInit()
 
#define FlowWakeupFlowManagerThread()   SCCtrlCondSignal(&flow_manager_ctrl_cond)
 
#define FlowWakeupFlowRecyclerThread()   SCCtrlCondSignal(&flow_recycler_ctrl_cond)
 

Functions

void FlowTimeoutsInit (void)
 
void FlowTimeoutsEmergency (void)
 
void FlowManagerThreadSpawn (void)
 spawn the flow manager thread More...
 
void FlowDisableFlowManagerThread (void)
 Used to disable flow manager thread(s). More...
 
void FlowMgrRegisterTests (void)
 Function to register the Flow Unitests. More...
 
void FlowRecyclerThreadSpawn (void)
 spawn the flow recycler thread More...
 
void FlowDisableFlowRecyclerThread (void)
 Used to disable flow recycler thread(s). More...
 
void TmModuleFlowManagerRegister (void)
 
void TmModuleFlowRecyclerRegister (void)
 

Variables

SCCtrlCondT flow_manager_ctrl_cond
 
SCCtrlMutex flow_manager_ctrl_mutex
 
SCCtrlCondT flow_recycler_ctrl_cond
 
SCCtrlMutex flow_recycler_ctrl_mutex
 

Detailed Description

Macro Definition Documentation

◆ FlowTimeoutsReset

#define FlowTimeoutsReset ( )    FlowTimeoutsInit()

Definition at line 28 of file flow-manager.h.

◆ FlowWakeupFlowManagerThread

#define FlowWakeupFlowManagerThread ( )    SCCtrlCondSignal(&flow_manager_ctrl_cond)

Definition at line 35 of file flow-manager.h.

◆ FlowWakeupFlowRecyclerThread

#define FlowWakeupFlowRecyclerThread ( )    SCCtrlCondSignal(&flow_recycler_ctrl_cond)

Definition at line 44 of file flow-manager.h.

Function Documentation

◆ FlowDisableFlowManagerThread()

void FlowDisableFlowManagerThread ( void  )

Used to disable flow manager thread(s).

Todo:
Kinda hackish since it uses the tv name to identify flow manager thread. We need an all weather identification scheme.

Definition at line 146 of file flow-manager.c.

Referenced by PostRunDeinit().

Here is the caller graph for this function:

◆ FlowDisableFlowRecyclerThread()

void FlowDisableFlowRecyclerThread ( void  )

Used to disable flow recycler thread(s).

Note
this should only be called when the flow manager is already gone
Todo:
Kinda hackish since it uses the tv name to identify flow recycler thread. We need an all weather identification scheme.

Definition at line 1069 of file flow-manager.c.

◆ FlowManagerThreadSpawn()

void FlowManagerThreadSpawn ( void  )

spawn the flow manager thread

Definition at line 877 of file flow-manager.c.

References ConfGetInt(), FatalError, and SC_ERR_INVALID_ARGUMENTS.

Here is the call graph for this function:

◆ FlowMgrRegisterTests()

void FlowMgrRegisterTests ( void  )

Function to register the Flow Unitests.

Definition at line 1427 of file flow-manager.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ FlowRecyclerThreadSpawn()

void FlowRecyclerThreadSpawn ( void  )

spawn the flow recycler thread

Definition at line 1028 of file flow-manager.c.

References ConfGetInt(), FatalError, and SC_ERR_INVALID_ARGUMENTS.

Here is the call graph for this function:

◆ FlowTimeoutsEmergency()

void FlowTimeoutsEmergency ( void  )

Definition at line 103 of file flow-manager.c.

References flow_timeouts_emerg, and SC_ATOMIC_SET.

◆ FlowTimeoutsInit()

void FlowTimeoutsInit ( void  )

Definition at line 98 of file flow-manager.c.

References flow_timeouts_normal, and SC_ATOMIC_SET.

Referenced by FlowInitFlowProto().

Here is the caller graph for this function:

◆ TmModuleFlowManagerRegister()

void TmModuleFlowManagerRegister ( void  )

Definition at line 1130 of file flow-manager.c.

References TmModule_::name, TmModule_::ThreadInit, TMM_FLOWMANAGER, and tmm_modules.

Referenced by RegisterAllModules().

Here is the caller graph for this function:

◆ TmModuleFlowRecyclerRegister()

void TmModuleFlowRecyclerRegister ( void  )

Definition at line 1144 of file flow-manager.c.

References TmModule_::name, TmModule_::ThreadInit, TMM_FLOWRECYCLER, and tmm_modules.

Referenced by RegisterAllModules().

Here is the caller graph for this function:

Variable Documentation

◆ flow_manager_ctrl_cond

SCCtrlCondT flow_manager_ctrl_cond

flow manager scheduling condition

Definition at line 89 of file flow-manager.c.

◆ flow_manager_ctrl_mutex

SCCtrlMutex flow_manager_ctrl_mutex

Definition at line 90 of file flow-manager.c.

◆ flow_recycler_ctrl_cond

SCCtrlCondT flow_recycler_ctrl_cond

flow recycler scheduling condition

Definition at line 92 of file flow-manager.c.

◆ flow_recycler_ctrl_mutex

SCCtrlMutex flow_recycler_ctrl_mutex

Definition at line 93 of file flow-manager.c.