suricata
util-var.c File Reference
#include "suricata-common.h"
#include "detect.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-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

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

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

References next, SCMalloc, strlcpy(), TAILQ_FOREACH, TAILQ_INSERT_TAIL, unlikely, and ResolvedVariable_::var_name.

Referenced by DetectAddressParseString(), and DetectPortListsAreEqual().

Here is the call graph for this function:

Here is the caller graph for this function:

void CleanVariableResolveList ( ResolvedVariablesList *  var_list)

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

References next, SCFree, TAILQ_FIRST, and TAILQ_REMOVE.

Referenced by DetectAddressTestConfVars(), and DetectPortTestConfVars().

Here is the caller graph for this function:

void GenericVarAppend ( GenericVar **  list,
GenericVar gv 
)

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

References GenericVar_::next.

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

Here is the caller graph for this function:

void GenericVarFree ( GenericVar gv)

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

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

Referenced by DetectHostbitFree(), FlowBitFree(), GenericVarFree(), and SigMatchSignaturesGetSgh().

Here is the call graph for this function:

Here is the caller graph for this function:

void GenericVarRemove ( GenericVar **  list,
GenericVar gv 
)

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

References GenericVar_::next.

Referenced by HostBitsTimedoutCheck(), and IPPairBitsTimedoutCheck().

Here is the caller graph for this function:

void XBitFree ( XBit fb)

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

References SCFree.

Referenced by GenericVarFree(), HostBitsTimedoutCheck(), and IPPairBitsTimedoutCheck().

Here is the caller graph for this function: