suricata
util-var.c File Reference
#include "suricata-common.h"
#include "detect.h"
#include "detect-engine-threshold.h"
#include "util-var.h"
#include "flow-var.h"
#include "flow-bit.h"
#include "pkt-var.h"
#include "host-bit.h"
#include "ippair-bit.h"
#include "util-validate.h"
#include "util-debug.h"
Include dependency graph for util-var.c:

Go to the source code of this file.

Functions

void XBitFree (XBit *fb)
 
void GenericVarFree (GenericVar *gv)
 
void GenericVarAppend (GenericVar **list, GenericVar *gv)
 
void GenericVarRemove (GenericVar **list, GenericVar *gv)
 
int AddVariableToResolveList (ResolvedVariablesList *list, const char *var)
 
void CleanVariableResolveList (ResolvedVariablesList *var_list)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Generic variable utility functions

Definition in file util-var.c.

Function Documentation

◆ AddVariableToResolveList()

int AddVariableToResolveList ( ResolvedVariablesList *  list,
const char *  var 
)

Definition at line 139 of file util-var.c.

◆ CleanVariableResolveList()

void CleanVariableResolveList ( ResolvedVariablesList *  var_list)

Definition at line 168 of file util-var.c.

References next, SCFree, TAILQ_FIRST, and TAILQ_REMOVE.

◆ GenericVarAppend()

void GenericVarAppend ( GenericVar **  list,
GenericVar gv 
)

Definition at line 98 of file util-var.c.

Referenced by FlowVarAddIdValue(), FlowVarAddIntNoLock(), and FlowVarAddKeyValue().

Here is the caller graph for this function:

◆ GenericVarFree()

void GenericVarFree ( GenericVar gv)

Definition at line 48 of file util-var.c.

References DEBUG_VALIDATE_BUG_ON, DETECT_FLOWBITS, DETECT_FLOWVAR, DETECT_PKTVAR, DETECT_THRESHOLD, DETECT_XBITS, FlowBitFree(), FlowThresholdVarFree(), FlowVarFree(), GenericVarFree(), GenericVar_::next, PktVarFree(), SCLogDebug, GenericVar_::type, and XBitFree().

Referenced by GenericVarFree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenericVarRemove()

void GenericVarRemove ( GenericVar **  list,
GenericVar gv 
)

Definition at line 117 of file util-var.c.

◆ XBitFree()

void XBitFree ( XBit fb)

Definition at line 40 of file util-var.c.

References SCFree.

Referenced by GenericVarFree().

Here is the caller graph for this function: