suricata
|
#include "conf.h"
Go to the source code of this file.
Functions | |
TmEcode | ConfigSetLogDirectory (char *name) |
const char * | ConfigGetLogDirectory (void) |
TmEcode | ConfigCheckLogDirectoryExists (const char *log_dir) |
TmEcode | ConfigSetDataDirectory (char *name) |
const char * | ConfigGetDataDirectory (void) |
TmEcode | ConfigCheckDataDirectory (const char *log_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.h.
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 129 of file util-conf.c.
References ConfNode_::name, next, TAILQ_FOREACH, and ConfNode_::val.
Referenced by AFPRunModeIsIPS(), RunModeIdsAFPRegister(), RunModeIdsNetmapRegister(), RunModeIdsPcapRegister(), and RunModeIdsPfringRegister().
TmEcode ConfigCheckDataDirectory | ( | const char * | log_dir | ) |
Definition at line 102 of file util-conf.c.
References SCEnter, SCReturnInt, TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by GetProgramVersion().
TmEcode ConfigCheckLogDirectoryExists | ( | const char * | log_dir | ) |
Definition at line 54 of file util-conf.c.
References SCEnter, SCReturnInt, TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by GetProgramVersion(), and PostRunDeinit().
const char* ConfigGetDataDirectory | ( | void | ) |
Definition at line 83 of file util-conf.c.
References ConfGet(), DEFAULT_DATA_DIR, and SCLogDebug.
Referenced by DetectDatasetBufferMatch().
const char* ConfigGetLogDirectory | ( | void | ) |
Definition at line 36 of file util-conf.c.
References ConfGet(), and DEFAULT_LOG_DIR.
Referenced by EngineAnalysisRules2(), LogTcpDataLogInitCtx(), OutputRegisterFiledataLogger(), PacketCreateMask(), PcapLogProfileSetup(), PostRunDeinit(), RulesDumpMatchArray(), SCConfLogOpenGeneric(), SCLogLoadConfig(), SCProfilingInit(), SCProfilingKeywordsGlobalInit(), SCProfilingPrefilterGlobalInit(), SCProfilingRulesGlobalInit(), SCProfilingSghsGlobalInit(), SetupFPAnalyzer(), SetupRuleAnalyzer(), and Unified2AlertInitCtx().
TmEcode ConfigSetDataDirectory | ( | char * | name | ) |
Definition at line 69 of file util-conf.c.
References ConfSetFinal(), strlcpy(), TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by GetProgramVersion(), and PostRunDeinit().
TmEcode ConfigSetLogDirectory | ( | char * | name | ) |
Definition at line 31 of file util-conf.c.
References ConfSetFinal(), TM_ECODE_FAILED, and TM_ECODE_OK.
Referenced by GetProgramVersion(), and PostRunDeinit().
int ConfUnixSocketIsEnable | ( | void | ) |
Definition at line 144 of file util-conf.c.
References ConfGet(), ConfValIsTrue(), IsRunModeOffline(), RunmodeGetCurrent(), SC_ERR_INVALID_YAML_CONF_ENTRY, SCLogError, and SCLogInfo.
Referenced by DetectEngineMultiTenantSetup(), and StatsSetUI64().