64#ifndef SURICATA_SURICATA_H
65#define SURICATA_SURICATA_H
75#define PROG_NAME "Suricata"
76#define PROG_VER PACKAGE_VERSION
81# define CONFIG_DIR "/etc/suricata"
84#define DEFAULT_CONF_FILE CONFIG_DIR "/suricata.yaml"
86#define DEFAULT_PID_DIR LOCAL_STATE_DIR "/run/"
87#define DEFAULT_PID_BASENAME "suricata.pid"
88#define DEFAULT_PID_FILENAME DEFAULT_PID_DIR DEFAULT_PID_BASENAME
90#define DOC_URL "https://docs.suricata.io/en/"
94#define SURICATA_STOP (1 << 0)
96#define SURICATA_DONE (1 << 2)
129#define IS_SURI_HOST_MODE_SNIFFER_ONLY(host_mode) ((host_mode) == SURI_HOST_IS_SNIFFER_ONLY)
204#define RunmodeIsUnittests() 0
242void PostRunDeinit(
const int runmode,
struct timeval *start_time);
246int WindowsInitService(
int argc,
char **argv);
enum SCRunModes SCRunMode
struct timeval start_time
char * runmode_custom_mode
const char * capture_plugin_args
char * strict_rule_parsing_string
char * firewall_rule_file
const char * capture_plugin_name
bool firewall_rule_file_exclusive
const char ** additional_configs
const char * conf_filename
enum SCRunModes aux_run_mode
int output_flush_interval
bool install_signal_handlers
void EngineDone(void)
Used to indicate that the current task is done.
void PostRunDeinit(const int runmode, struct timeval *start_time)
clean up / shutdown code for packet modes
int InitGlobal(void)
Global initialization common to all runmodes.
struct SCInstance_ SCInstance
void PostConfLoadedDetectSetup(SCInstance *suri)
void SCEnableDefaultSignalHandlers(void)
Enable default signal handlers.
void EngineModeSetFirewall(void)
void PreRunInit(const int runmode)
void PreRunPostPrivsDropInit(const int runmode)
void SuricataShutdown(void)
TmEcode SCLoadYamlConfig(void)
bool EngineModeIsFirewall(void)
int EngineModeIsIPS(void)
SCRunMode SCRunmodeGet(void)
Get the current run mode.
int SCFinalizeRunMode(void)
volatile uint8_t suricata_ctl_flags
int EngineModeIsUnknown(void)
void EngineModeSetIDS(void)
@ SURI_HOST_IS_SNIFFER_ONLY
void EngineModeSetIPS(void)
int SCStartInternalRunMode(int argc, char **argv)
void GlobalsDestroy(void)
void EngineStop(void)
make sure threads can stop the engine by calling this function. Purpose: pcap file mode needs to be a...
void SCRunmodeSet(SCRunMode run_mode)
Set the current run mode.
TmEcode SCParseCommandLine(int argc, char **argv)
void SuricataMainLoop(void)
void RegisterAllModules(void)
void SuricataPreInit(const char *progname)
const char * GetDocURL(void)
void SuricataPostInit(void)
void GlobalsInitPreConfig(void)
const char * GetProgramVersion(void)
get string with program version
int EngineModeIsIDS(void)
int RunmodeIsUnittests(void)
int PostConfLoadedSetup(SCInstance *suri)