suricata
|
Go to the source code of this file.
Functions | |
TmEcode | ConfigSetLogDirectory (const char *name) |
const char * | ConfigGetLogDirectory () |
TmEcode | ConfigCheckLogDirectoryExists (const char *log_dir) |
TmEcode | ConfigSetDataDirectory (char *name) |
const char * | ConfigGetDataDirectory () |
TmEcode | ConfigCheckDataDirectory (const char *data_dir) |
ConfNode * | ConfFindDeviceConfig (ConfNode *node, const char *iface) |
Find the configuration node for a specific device. More... | |
int | ConfUnixSocketIsEnable (void) |
Definition in file util-conf.c.
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 128 of file util-conf.c.
References ConfNode_::name, next, TAILQ_FOREACH, and ConfNode_::val.
Referenced by AFPRunModeIsIPS(), and ConfSetIfaceNode().
TmEcode ConfigCheckDataDirectory | ( | const char * | data_dir | ) |
Definition at line 101 of file util-conf.c.
References SCEnter, SCReturnInt, TM_ECODE_FAILED, and TM_ECODE_OK.
TmEcode ConfigCheckLogDirectoryExists | ( | const char * | log_dir | ) |
Definition at line 53 of file util-conf.c.
References SCEnter, SCReturnInt, TM_ECODE_FAILED, and TM_ECODE_OK.
const char* ConfigGetDataDirectory | ( | ) |
Definition at line 82 of file util-conf.c.
References ConfGet(), DEFAULT_DATA_DIR, and SCLogDebug.
const char* ConfigGetLogDirectory | ( | ) |
Definition at line 35 of file util-conf.c.
References ConfGet(), and DEFAULT_LOG_DIR.
Referenced by DumpPatterns(), LogTcpDataLogInitCtx(), RulesDumpMatchArray(), RulesDumpTxMatchArray(), SCProfilingKeywordsGlobalInit(), SCProfilingPrefilterGlobalInit(), and SCProfilingSghsGlobalInit().
TmEcode ConfigSetDataDirectory | ( | char * | name | ) |
Definition at line 68 of file util-conf.c.
References ConfSetFinal(), strlcpy(), TM_ECODE_FAILED, and TM_ECODE_OK.
TmEcode ConfigSetLogDirectory | ( | const char * | name | ) |
Definition at line 30 of file util-conf.c.
References ConfSetFinal(), TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by LLVMFuzzerTestOneInput().
int ConfUnixSocketIsEnable | ( | void | ) |
Definition at line 143 of file util-conf.c.
References ConfGet(), ConfValIsTrue(), IsRunModeOffline(), RunmodeGetCurrent(), SC_ERR_INVALID_YAML_CONF_ENTRY, SCLogError, and SCLogInfo.