suricata
flow-manager.h
Go to the documentation of this file.
1 /* Copyright (C) 2007-2013 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file
20  *
21  * \author Anoop Saldanha <anoopsaldanha@gmail.com>
22  */
23 
24 #ifndef __FLOW_MANAGER_H__
25 #define __FLOW_MANAGER_H__
26 
27 #define FlowTimeoutsReset() FlowTimeoutsInit()
28 void FlowTimeoutsInit(void);
29 void FlowTimeoutsEmergency(void);
30 
31 /** flow manager scheduling condition */
34 #define FlowWakeupFlowManagerThread() SCCtrlCondSignal(&flow_manager_ctrl_cond)
35 
36 void FlowManagerThreadSpawn(void);
38 void FlowMgrRegisterTests (void);
39 
40 /** flow recycler scheduling condition */
43 #define FlowWakeupFlowRecyclerThread() \
44  SCCtrlCondSignal(&flow_recycler_ctrl_cond)
45 
46 void FlowRecyclerThreadSpawn(void);
48 
49 void TmModuleFlowManagerRegister (void);
51 
52 #endif /* __FLOW_MANAGER_H__ */
void FlowTimeoutsInit(void)
Definition: flow-manager.c:89
void FlowDisableFlowRecyclerThread(void)
Used to disable flow recycler thread(s).
void FlowDisableFlowManagerThread(void)
Used to disable flow manager thread(s).
Definition: flow-manager.c:133
#define SCCtrlCondT
void FlowMgrRegisterTests(void)
Function to register the Flow Unitests.
#define SCCtrlMutex
SCCtrlMutex flow_recycler_ctrl_mutex
Definition: flow-manager.h:42
SCCtrlCondT flow_manager_ctrl_cond
Definition: flow-manager.h:32
SCCtrlMutex flow_manager_ctrl_mutex
Definition: flow-manager.h:33
void FlowRecyclerThreadSpawn(void)
spawn the flow recycler thread
Definition: flow-manager.c:965
SCCtrlCondT flow_recycler_ctrl_cond
Definition: flow-manager.h:41
void FlowTimeoutsEmergency(void)
Definition: flow-manager.c:94
void TmModuleFlowManagerRegister(void)
void FlowManagerThreadSpawn(void)
spawn the flow manager thread
Definition: flow-manager.c:804
void TmModuleFlowRecyclerRegister(void)