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

Go to the source code of this file.

Enumerations

enum  SCRuleVarsType { SC_RULE_VARS_ADDRESS_GROUPS, SC_RULE_VARS_PORT_GROUPS }
 

Functions

const char * SCRuleVarsGetConfVar (const DetectEngineCtx *, const char *, SCRuleVarsType)
 
void SCRuleVarsRegisterTests (void)
 

Detailed Description

Enumeration Type Documentation

◆ SCRuleVarsType

Enum indicating the various vars type in the yaml conf file

Enumerator
SC_RULE_VARS_ADDRESS_GROUPS 
SC_RULE_VARS_PORT_GROUPS 

Definition at line 30 of file util-rule-vars.h.

Function Documentation

◆ SCRuleVarsGetConfVar()

const char* SCRuleVarsGetConfVar ( const DetectEngineCtx ,
const char *  ,
SCRuleVarsType   
)

Definition at line 65 of file util-rule-vars.c.

References ConfGet(), DetectEngineCtx_::config_prefix, de_ctx, sc_rule_vars_type_map, SCEnter, SCLogDebug, SCLogError, SCMapEnumValueToName(), and SCReturnCharPtr.

Here is the call graph for this function:

◆ SCRuleVarsRegisterTests()

void SCRuleVarsRegisterTests ( void  )

Definition at line 400 of file util-rule-vars.c.

References UtRegisterTest().

Here is the call graph for this function: