suricata
|
#include "suricata-common.h"
#include "conf.h"
#include "conf-yaml-loader.h"
#include "detect.h"
#include "detect-content.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "util-rule-vars.h"
#include "util-enum.h"
#include "util-debug.h"
#include "util-unittest.h"
Go to the source code of this file.
Functions | |
const char * | SCRuleVarsGetConfVar (const DetectEngineCtx *de_ctx, const char *conf_var_name, SCRuleVarsType conf_vars_type) |
void | SCRuleVarsRegisterTests (void) |
Variables | |
SCEnumCharMap | sc_rule_vars_type_map [] |
Rule variable utility functions
Definition in file util-rule-vars.c.
const char* SCRuleVarsGetConfVar | ( | const DetectEngineCtx * | de_ctx, |
const char * | conf_var_name, | ||
SCRuleVarsType | conf_vars_type | ||
) |
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.
void SCRuleVarsRegisterTests | ( | void | ) |
Definition at line 400 of file util-rule-vars.c.
References UtRegisterTest().
SCEnumCharMap sc_rule_vars_type_map[] |
An enum-string map, that maps the different vars type in the yaml conf type with the mapping path in the yaml conf file
Definition at line 43 of file util-rule-vars.c.
Referenced by SCRuleVarsGetConfVar().