suricata
|
#include "conf.h"
Go to the source code of this file.
Functions | |
TmEcode | ConfigSetLogDirectory (const char *name) |
const char * | SCConfigGetLogDirectory (void) |
TmEcode | ConfigCheckLogDirectoryExists (const char *log_dir) |
TmEcode | ConfigSetDataDirectory (char *name) |
const char * | ConfigGetDataDirectory (void) |
TmEcode | ConfigCheckDataDirectory (const char *log_dir) |
SCConfNode * | ConfFindDeviceConfig (SCConfNode *node, const char *iface) |
Find the configuration node for a specific device. | |
int | ConfUnixSocketIsEnable (void) |
Definition in file util-conf.h.
SCConfNode * ConfFindDeviceConfig | ( | SCConfNode * | node, |
const char * | iface | ||
) |
Find the configuration node for a specific device.
Basically hunts through the list of maps for the first one with a key of "interface", and a value of the provided interface.
node | The node to start looking for the device configuration. Typically this would be something like the af-packet or pf-ring node. |
iface | The name of the interface to find the config for. |
Definition at line 121 of file util-conf.c.
References SCConfNode_::name, next, TAILQ_FOREACH, and SCConfNode_::val.
Referenced by SCConfSetIfaceNode().
TmEcode ConfigCheckDataDirectory | ( | const char * | log_dir | ) |
Definition at line 99 of file util-conf.c.
References SCEnter, SCReturnInt, SCStatFn, TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by SCParseCommandLine().
TmEcode ConfigCheckLogDirectoryExists | ( | const char * | log_dir | ) |
Definition at line 56 of file util-conf.c.
References SCEnter, SCReturnInt, SCStatFn, TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by PostConfLoadedSetup(), and SCParseCommandLine().
const char * ConfigGetDataDirectory | ( | void | ) |
Definition at line 80 of file util-conf.c.
References DEFAULT_DATA_DIR, SCConfGet(), and SCLogDebug.
TmEcode ConfigSetDataDirectory | ( | char * | name | ) |
Definition at line 66 of file util-conf.c.
References name, SCConfSetFinal(), strlcpy(), TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by SCParseCommandLine().
TmEcode ConfigSetLogDirectory | ( | const char * | name | ) |
Definition at line 33 of file util-conf.c.
References name, SCConfSetFinal(), TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by LLVMFuzzerTestOneInput(), and SCParseCommandLine().
int ConfUnixSocketIsEnable | ( | void | ) |
Definition at line 136 of file util-conf.c.
References IsRunModeOffline(), SCConfGet(), SCConfValIsTrue(), SCLogError, SCLogInfo, and SCRunmodeGet().
Referenced by SuricataInit().
const char * SCConfigGetLogDirectory | ( | void | ) |
Definition at line 38 of file util-conf.c.
References DEFAULT_LOG_DIR, and SCConfGet().
Referenced by DumpPatterns(), EngineAnalysisRules2(), FirewallAnalyzer(), LogTcpDataLogInitCtx(), PcapLogProfileSetup(), PostConfLoadedSetup(), RulesDumpMatchArray(), RulesDumpTxMatchArray(), SCConfLogOpenGeneric(), SCProfilingInit(), SCProfilingKeywordsGlobalInit(), SCProfilingPrefilterGlobalInit(), and SCProfilingSghsGlobalInit().