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 typedef void *(*ConfigIfaceParserFunc) (const char *);
27 typedef void *(*ConfigIPSParserFunc) (int);
28 typedef int (*ConfigIfaceThreadsCountFunc) (void *);
29 
31  ConfigIfaceThreadsCountFunc ModThreadsCount,
32  const char *recv_mod_name,
33  const char *decode_mod_name, const char *thread_name,
34  const char *live_dev);
35 
37  ConfigIfaceThreadsCountFunc ModThreadsCount,
38  const char *recv_mod_name,
39  const char *decode_mod_name, const char *thread_name,
40  const char *live_dev);
41 
43  ConfigIfaceThreadsCountFunc ModThreadsCount,
44  const char *recv_mod_name,
45  const char *decode_mod_name, const char *thread_name,
46  const char *live_dev);
47 
49  ConfigIfaceThreadsCountFunc ModThreadsCount,
50  const char *recv_mod_name,
51  const char *decode_mod_name, const char *thread_name,
52  const char *live_dev);
53 
55  const char *recv_mod_name,
56  const char *verdict_mod_name,
57  const char *decode_mod_name);
58 
60  const char *recv_mod_name,
61  const char *verdict_mod_name,
62  const char *decode_mod_name);
63 
65 
66 #endif /* __UTIL_RUNMODES_H__ */
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:28
void *(* ConfigIPSParserFunc)(int)
Definition: util-runmodes.h:27
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:26
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 RunModeSetLiveCaptureSingle(ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)