Go to the documentation of this file.
64 #ifndef SURICATA_SURICATA_H
65 #define SURICATA_SURICATA_H
70 #define PROG_NAME "Suricata"
71 #define PROG_VER PACKAGE_VERSION
76 # define CONFIG_DIR "/etc/suricata"
79 #define DEFAULT_CONF_FILE CONFIG_DIR "/suricata.yaml"
81 #define DEFAULT_PID_DIR LOCAL_STATE_DIR "/run/"
82 #define DEFAULT_PID_BASENAME "suricata.pid"
83 #define DEFAULT_PID_FILENAME DEFAULT_PID_DIR DEFAULT_PID_BASENAME
85 #define DOC_URL "https://docs.suricata.io/en/"
89 #define SURICATA_STOP (1 << 0)
91 #define SURICATA_DONE (1 << 2)
119 #define IS_SURI_HOST_MODE_SNIFFER_ONLY(host_mode) ((host_mode) == SURI_HOST_IS_SNIFFER_ONLY)
186 #define RunmodeIsUnittests() 0
219 void PostRunDeinit(
const int runmode,
struct timeval *start_time);
223 int WindowsInitService(
int argc,
char **argv);
struct timeval start_time
struct SCInstance_ SCInstance
int RunmodeIsUnittests(void)
char * runmode_custom_mode
int InitGlobal(void)
Global initialization common to all runmodes.
void EngineStop(void)
make sure threads can stop the engine by calling this function. Purpose: pcap file mode needs to be a...
void PreRunPostPrivsDropInit(const int runmode)
const char * conf_filename
TmEcode SCLoadYamlConfig(void)
const char * capture_plugin_name
void SuricataShutdown(void)
const char * capture_plugin_args
int EngineModeIsIPS(void)
void EngineDone(void)
Used to indicate that the current task is done.
void PostConfLoadedDetectSetup(SCInstance *suri)
void GlobalsInitPreConfig(void)
void GlobalsDestroy(void)
void SuricataMainLoop(void)
const char * GetProgramVersion(void)
get string with program version
int SCRunmodeGet(void)
Get the current run mode.
void EngineModeSetIDS(void)
enum RunModes aux_run_mode
const char ** additional_configs
void EngineModeSetIPS(void)
int SCStartInternalRunMode(int argc, char **argv)
char * strict_rule_parsing_string
int EngineModeIsUnknown(void)
void PreRunInit(const int runmode)
void PostRunDeinit(const int runmode, struct timeval *start_time)
int SCFinalizeRunMode(void)
void SuricataPostInit(void)
int EngineModeIsIDS(void)
void SCRunmodeSet(int run_mode)
Set the current run mode.
void SuricataPreInit(const char *progname)
void RegisterAllModules(void)
TmEcode SCParseCommandLine(int argc, char **argv)
volatile uint8_t suricata_ctl_flags
@ SURI_HOST_IS_SNIFFER_ONLY
const char * GetDocURL(void)
int PostConfLoadedSetup(SCInstance *suri)