suricata
util-conf.h File Reference
#include "conf.h"
Include dependency graph for util-conf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

TmEcode ConfigSetLogDirectory (char *name)
 
const char * ConfigGetLogDirectory (void)
 
TmEcode ConfigCheckLogDirectory (const char *log_dir)
 
ConfNodeConfFindDeviceConfig (ConfNode *node, const char *iface)
 Find the configuration node for a specific device. More...
 
int ConfUnixSocketIsEnable (void)
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Definition in file util-conf.h.

Function Documentation

ConfNode* ConfFindDeviceConfig ( ConfNode 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.

Parameters
nodeThe node to start looking for the device configuration. Typically this would be something like the af-packet or pf-ring node.
ifaceThe name of the interface to find the config for.

Definition at line 81 of file util-conf.c.

References ConfNode_::name, next, TAILQ_FOREACH, and ConfNode_::val.

Referenced by AFPRunModeIsIPS(), RunModeIdsAFPRegister(), RunModeIdsNetmapRegister(), RunModeIdsPcapRegister(), and RunModeIdsPfringRegister().

Here is the caller graph for this function:

TmEcode ConfigCheckLogDirectory ( 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 PostRunDeinit(), and RegisterAllModules().

Here is the caller graph for this function:

TmEcode ConfigSetLogDirectory ( char *  name)

Definition at line 31 of file util-conf.c.

References ConfSetFinal(), TM_ECODE_FAILED, and TM_ECODE_OK.

Referenced by PostRunDeinit(), and RegisterAllModules().

Here is the call graph for this function:

Here is the caller graph for this function:

int ConfUnixSocketIsEnable ( void  )

Definition at line 96 of file util-conf.c.

References ConfGet(), ConfValIsTrue(), IsRunModeOffline(), RunmodeGetCurrent(), SC_ERR_INVALID_YAML_CONF_ENTRY, SCLogError, and SCLogInfo.

Referenced by DetectEngineMultiTenantSetup(), and StatsSetUI64().

Here is the call graph for this function:

Here is the caller graph for this function: