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 FlowWakeupFlowManagerThread (void)
 
void FlowWakeupFlowRecyclerThread (void)
 
void FlowTimeoutsInit (void)
 
void FlowTimeoutsEmergency (void)
 
void FlowManagerThreadSpawn (void)
 spawn the flow manager thread
 
void FlowDisableFlowManagerThread (void)
 Used to disable flow manager thread(s).
 
void FlowRecyclerThreadSpawn (void)
 spawn the flow recycler thread
 
void FlowDisableFlowRecyclerThread (void)
 Used to disable flow recycler thread(s).
 
void TmModuleFlowManagerRegister (void)
 
void TmModuleFlowRecyclerRegister (void)
 

Detailed Description

Macro Definition Documentation

◆ FlowTimeoutsReset

#define FlowTimeoutsReset ( )    FlowTimeoutsInit()

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

References FatalError, ThreadVars_::name, ThreadVars_::next, SC_ATOMIC_SET, 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 1231 of file flow-manager.c.

References FatalError, FlowWakeupFlowRecyclerThread(), ThreadVars_::name, ThreadVars_::next, SC_ATOMIC_SET, SCLogDebug, SCMutexLock, SCMutexUnlock, SleepMsec, SleepUsec, thread_name_flow_rec, 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:

◆ FlowManagerThreadSpawn()

void FlowManagerThreadSpawn ( void  )

spawn the flow manager thread

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

References BUG_ON, FatalError, FlowGetMemuse(), name, SCConfGetInt(), SCLogConfig, StatsRegisterGlobalCounter(), thread_name_flow_mgr, TM_ECODE_OK, TM_THREAD_NAME_MAX, TmThreadCreateMgmtThreadByName(), and TmThreadSpawn().

Referenced by RunModeDispatch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FlowRecyclerThreadSpawn()

void FlowRecyclerThreadSpawn ( void  )

spawn the flow recycler thread

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

References FatalError, name, SCConfGetInt(), SCLogConfig, thread_name_flow_rec, TM_ECODE_OK, TM_THREAD_NAME_MAX, TmThreadCreateMgmtThreadByName(), and TmThreadSpawn().

Referenced by RunModeDispatch().

Here is the call graph for this function:
Here is the caller 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:

◆ FlowWakeupFlowManagerThread()

void FlowWakeupFlowManagerThread ( void  )

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

References SCCtrlCondSignal, SCCtrlMutexLock, and SCCtrlMutexUnlock.

◆ FlowWakeupFlowRecyclerThread()

void FlowWakeupFlowRecyclerThread ( void  )

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

References SCCtrlCondSignal, SCCtrlMutexLock, and SCCtrlMutexUnlock.

Referenced by FlowDisableFlowRecyclerThread().

Here is the caller graph for this function:

◆ TmModuleFlowManagerRegister()

void TmModuleFlowManagerRegister ( void  )

◆ TmModuleFlowRecyclerRegister()

void TmModuleFlowRecyclerRegister ( void  )