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 SURICATA_UTIL_RUNMODES_H
24 #define SURICATA_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, const char *recv_mod_name,
38  const char *decode_mod_name, const char *thread_name, const char *live_dev);
39 
41  ConfigIfaceThreadsCountFunc ModThreadsCount,
42  const char *recv_mod_name,
43  const char *decode_mod_name, const char *thread_name,
44  const char *live_dev);
45 
47  ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name,
48  const char *decode_mod_name, const char *thread_name, const char *live_dev);
49 
51  const char *recv_mod_name,
52  const char *verdict_mod_name,
53  const char *decode_mod_name);
54 
56  const char *recv_mod_name,
57  const char *verdict_mod_name,
58  const char *decode_mod_name);
59 
61 
62 #endif /* SURICATA_UTIL_RUNMODES_H */
RunModeSetIPSWorker
int RunModeSetIPSWorker(ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name)
Definition: util-runmodes.c:508
RunModeSetLiveCaptureAuto
int RunModeSetLiveCaptureAuto(ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
ConfigIfaceThreadsCountFunc
int(* ConfigIfaceThreadsCountFunc)(void *)
Definition: util-runmodes.h:28
ConfigIPSParserFunc
void *(* ConfigIPSParserFunc)(int)
Definition: util-runmodes.h:27
RunmodeAutoFpCreatePickupQueuesString
char * RunmodeAutoFpCreatePickupQueuesString(int n)
create a queue string for autofp to pass to the flow queue handler.
Definition: util-runmodes.c:56
RunModeSetIPSAutoFp
int RunModeSetIPSAutoFp(ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name)
Definition: util-runmodes.c:385
RunModeSetLiveCaptureWorkers
int RunModeSetLiveCaptureWorkers(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:321
ConfigIfaceParserFunc
void *(* ConfigIfaceParserFunc)(const char *)
Definition: util-runmodes.h:26
RunModeSetLiveCaptureSingle
int RunModeSetLiveCaptureSingle(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:350
RunModeSetLiveCaptureAutoFp
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:85