suricata
|
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) |
Definition in file flow-manager.h.
#define FlowTimeoutsReset | ( | ) | FlowTimeoutsInit() |
Definition at line 30 of file flow-manager.h.
void FlowDisableFlowManagerThread | ( | void | ) |
Used to disable flow manager thread(s).
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().
void FlowDisableFlowRecyclerThread | ( | void | ) |
Used to disable flow recycler thread(s).
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().
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().
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().
void FlowTimeoutsEmergency | ( | void | ) |
Definition at line 103 of file flow-manager.c.
References flow_timeouts_emerg, and SC_ATOMIC_SET.
void FlowTimeoutsInit | ( | void | ) |
Definition at line 98 of file flow-manager.c.
References flow_timeouts_normal, and SC_ATOMIC_SET.
Referenced by FlowInitFlowProto().
void FlowWakeupFlowManagerThread | ( | void | ) |
Definition at line 84 of file flow-manager.c.
References SCCtrlCondSignal, SCCtrlMutexLock, and SCCtrlMutexUnlock.
void FlowWakeupFlowRecyclerThread | ( | void | ) |
Definition at line 91 of file flow-manager.c.
References SCCtrlCondSignal, SCCtrlMutexLock, and SCCtrlMutexUnlock.
Referenced by FlowDisableFlowRecyclerThread().
void TmModuleFlowManagerRegister | ( | void | ) |
Definition at line 1289 of file flow-manager.c.
References TmModule_::cap_flags, TmModule_::flags, TmModule_::Management, TmModule_::name, name, SC_ATOMIC_INIT, SC_ATOMIC_INITPTR, SCLogDebug, TmModule_::ThreadDeinit, TmModule_::ThreadInit, TM_FLAG_MANAGEMENT_TM, TMM_FLOWMANAGER, and tmm_modules.
Referenced by RegisterAllModules().
void TmModuleFlowRecyclerRegister | ( | void | ) |
Definition at line 1303 of file flow-manager.c.
References TmModule_::cap_flags, TmModule_::flags, TmModule_::Management, TmModule_::name, name, SC_ATOMIC_INIT, SCLogDebug, TmModule_::ThreadDeinit, TmModule_::ThreadInit, TM_FLAG_MANAGEMENT_TM, TMM_FLOWRECYCLER, and tmm_modules.
Referenced by RegisterAllModules().