suricata
util-runmodes.h
Go to the documentation of this file.
1 /* Copyright (C) 2011 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 /** \file
19  *
20  * \author Eric Leblond <eric@regit.org>
21  */
22 
23 #ifndef __UTIL_RUNMODES_H__
24 #define __UTIL_RUNMODES_H__
25 
26 void RunmodeSetFlowStreamAsync(void);
28 
29 typedef void *(*ConfigIfaceParserFunc) (const char *);
30 typedef void *(*ConfigIPSParserFunc) (int);
31 typedef int (*ConfigIfaceThreadsCountFunc) (void *);
32 
34  ConfigIfaceThreadsCountFunc ModThreadsCount,
35  const char *recv_mod_name,
36  const char *decode_mod_name, const char *thread_name,
37  const char *live_dev);
38 
40  ConfigIfaceThreadsCountFunc ModThreadsCount,
41  const char *recv_mod_name,
42  const char *decode_mod_name, const char *thread_name,
43  const char *live_dev);
44 
46  ConfigIfaceThreadsCountFunc ModThreadsCount,
47  const char *recv_mod_name,
48  const char *decode_mod_name, const char *thread_name,
49  const char *live_dev);
50 
52  ConfigIfaceThreadsCountFunc ModThreadsCount,
53  const char *recv_mod_name,
54  const char *decode_mod_name, const char *thread_name,
55  const char *live_dev);
56 
58  const char *recv_mod_name,
59  const char *verdict_mod_name,
60  const char *decode_mod_name);
61 
63  const char *recv_mod_name,
64  const char *verdict_mod_name,
65  const char *decode_mod_name);
66 
68 
69 #endif /* __UTIL_RUNMODES_H__ */
void RunmodeSetFlowStreamAsync(void)
int RunModeSetLiveCaptureAutoFp(ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
Definition: util-runmodes.c:89
int RunModeSetLiveCaptureAuto(ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
int RunModeSetIPSWorker(ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name)
int(* ConfigIfaceThreadsCountFunc)(void *)
Definition: util-runmodes.h:31
void *(* ConfigIPSParserFunc)(int)
Definition: util-runmodes.h:30
char * RunmodeAutoFpCreatePickupQueuesString(int n)
create a queue string for autofp to pass to the flow queue handler.
Definition: util-runmodes.c:59
void *(* ConfigIfaceParserFunc)(const char *)
Definition: util-runmodes.h:29
int RunModeSetIPSAutoFp(ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name)
int RunModeSetLiveCaptureWorkers(ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
int RunmodeGetFlowStreamAsync(void)
int RunModeSetLiveCaptureSingle(ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)