diff options
author | Ashlee Young <ashlee@onosfw.com> | 2015-09-09 22:21:41 -0700 |
---|---|---|
committer | Ashlee Young <ashlee@onosfw.com> | 2015-09-09 22:21:41 -0700 |
commit | 8879b125d26e8db1a5633de5a9c692eb2d1c4f83 (patch) | |
tree | c7259d85a991b83dfa85ab2e339360669fc1f58e /framework/src/suricata/src/runmodes.h | |
parent | 13d05bc8458758ee39cb829098241e89616717ee (diff) |
suricata checkin based on commit id a4bce14770beee46a537eda3c3f6e8e8565d5d0a
Change-Id: I9a214fa0ee95e58fc640e50bd604dac7f42db48f
Diffstat (limited to 'framework/src/suricata/src/runmodes.h')
-rw-r--r-- | framework/src/suricata/src/runmodes.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/framework/src/suricata/src/runmodes.h b/framework/src/suricata/src/runmodes.h new file mode 100644 index 00000000..bd8d0326 --- /dev/null +++ b/framework/src/suricata/src/runmodes.h @@ -0,0 +1,100 @@ +/* Copyright (C) 2007-2013 Open Information Security Foundation + * + * You can copy, redistribute or modify this Program under the terms of + * the GNU General Public License version 2 as published by the Free + * Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * version 2 along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + +/** \file + * + * \author Victor Julien <victor@inliniac.net> + */ + +#ifndef __RUNMODES_H__ +#define __RUNMODES_H__ + +/* Run mode */ +enum { + RUNMODE_UNKNOWN = 0, + RUNMODE_PCAP_DEV, + RUNMODE_PCAP_FILE, + RUNMODE_PFRING, + RUNMODE_NFQ, + RUNMODE_NFLOG, + RUNMODE_IPFW, + RUNMODE_ERF_FILE, + RUNMODE_DAG, + RUNMODE_AFP_DEV, + RUNMODE_NETMAP, + RUNMODE_TILERA_MPIPE, + RUNMODE_UNITTEST, + RUNMODE_NAPATECH, + RUNMODE_UNIX_SOCKET, + RUNMODE_USER_MAX, /* Last standard running mode */ + RUNMODE_LIST_KEYWORDS, + RUNMODE_LIST_APP_LAYERS, + RUNMODE_LIST_CUDA_CARDS, + RUNMODE_LIST_RUNMODES, + RUNMODE_PRINT_VERSION, + RUNMODE_PRINT_BUILDINFO, + RUNMODE_PRINT_USAGE, + RUNMODE_DUMP_CONFIG, + RUNMODE_CONF_TEST, + RUNMODE_LIST_UNITTEST, + RUNMODE_ENGINE_ANALYSIS, +#ifdef OS_WIN32 + RUNMODE_INSTALL_SERVICE, + RUNMODE_REMOVE_SERVICE, + RUNMODE_CHANGE_SERVICE_PARAMS, +#endif + RUNMODE_MAX, +}; + +char *RunmodeGetActive(void); +const char *RunModeGetMainMode(void); + +void RunModeListRunmodes(void); +void RunModeDispatch(int, const char *); +void RunModeRegisterRunModes(void); +void RunModeRegisterNewRunMode(int, const char *, const char *, + int (*RunModeFunc)(void)); +void RunModeInitialize(void); +void RunModeInitializeOutputs(void); +void SetupOutputs(ThreadVars *); +void RunModeShutDown(void); + +/* bool indicating if file logger is enabled */ +int RunModeOutputFileEnabled(void); +/* bool indicating if filedata logger is enabled */ +int RunModeOutputFiledataEnabled(void); + +#include "runmode-pcap.h" +#include "runmode-pcap-file.h" +#include "runmode-pfring.h" +#include "runmode-tile.h" +#include "runmode-nfq.h" +#include "runmode-ipfw.h" +#include "runmode-erf-file.h" +#include "runmode-erf-dag.h" +#include "runmode-napatech.h" +#include "runmode-af-packet.h" +#include "runmode-nflog.h" +#include "runmode-unix-socket.h" +#include "runmode-netmap.h" + +int threading_set_cpu_affinity; +extern float threading_detect_ratio; + +extern int debuglog_enabled; + +#endif /* __RUNMODES_H__ */ |