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()
 

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 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)
 

Detailed Description

Macro Definition Documentation

◆ FlowTimeoutsReset

#define FlowTimeoutsReset ( )    FlowTimeoutsInit()

Definition at line 28 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 140 of file flow-manager.c.

References FatalError, ThreadVars_::name, ThreadVars_::next, SC_ATOMIC_SET, SC_ERR_SHUTDOWN, SCMutexLock, SCMutexUnlock, SleepMsec, thread_name_flow_mgr, THV_KILL, THV_RUNNING_DONE, TmThreadsCheckFlag(), TmThreadsSetFlag(), tv, tv_root, tv_root_lock, and TVT_MGMT.

Referenced by PostRunDeinit().

Here is the call graph for this function:
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 1295 of file flow-manager.c.

◆ FlowManagerThreadSpawn()

void FlowManagerThreadSpawn ( void  )

spawn the flow manager thread

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

References ConfGetInt(), FatalError, and SC_ERR_INVALID_ARGUMENTS.

Here is the call graph for this function:

◆ FlowRecyclerThreadSpawn()

void FlowRecyclerThreadSpawn ( void  )

spawn the flow recycler thread

Definition at line 1257 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 96 of file flow-manager.c.

References flow_timeouts_emerg, and SC_ATOMIC_SET.

◆ FlowTimeoutsInit()

void FlowTimeoutsInit ( void  )

Definition at line 91 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 1355 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 1369 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: