diff options
Diffstat (limited to 'framework/src/suricata/src/runmodes.h')
-rw-r--r-- | framework/src/suricata/src/runmodes.h | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/framework/src/suricata/src/runmodes.h b/framework/src/suricata/src/runmodes.h deleted file mode 100644 index bd8d0326..00000000 --- a/framework/src/suricata/src/runmodes.h +++ /dev/null @@ -1,100 +0,0 @@ -/* 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__ */ |