suricata
detect-flowvar.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DetectFlowvarData_
 

Typedefs

typedef struct DetectFlowvarData_ DetectFlowvarData
 

Functions

void DetectFlowvarRegister (void)
 
int DetectFlowvarPostMatchSetup (Signature *s, uint32_t idx)
 Setup a post-match for flowvar storage We're piggyback riding the DetectFlowvarData struct. More...
 
int DetectVarStoreMatch (DetectEngineThreadCtx *, uint32_t, uint8_t *, uint16_t, int)
 Store flowvar in det_ctx so we can exec it post-match. More...
 
int DetectVarStoreMatchKeyValue (DetectEngineThreadCtx *, uint8_t *, uint16_t, uint8_t *, uint16_t, int)
 Store flowvar in det_ctx so we can exec it post-match. More...
 
void DetectVarProcessListInternal (DetectVarList *fs, Flow *f, Packet *p)
 Handle flowvar candidate list in det_ctx: clean up the list. More...
 

Detailed Description

Typedef Documentation

Function Documentation

int DetectFlowvarPostMatchSetup ( Signature s,
uint32_t  idx 
)
void DetectFlowvarRegister ( void  )
void DetectVarProcessListInternal ( DetectVarList fs,
Flow f,
Packet p 
)

Handle flowvar candidate list in det_ctx: clean up the list.

Only called from DetectVarProcessList() when varlist is not NULL.

Definition at line 354 of file detect-flowvar.c.

References DetectVarList_::buffer, DetectVarList_::key, next, DetectVarList_::next, and SCFree.

int DetectVarStoreMatch ( DetectEngineThreadCtx ,
uint32_t  ,
uint8_t *  ,
uint16_t  ,
int   
)

Store flowvar in det_ctx so we can exec it post-match.

Definition at line 225 of file detect-flowvar.c.

References DetectVarList_::buffer, DetectVarList_::idx, DetectVarList_::len, len, DetectVarList_::next, SCCalloc, SCFree, DetectVarList_::type, type, unlikely, and DetectEngineThreadCtx_::varlist.

Referenced by DetectPcrePayloadMatch().

Here is the caller graph for this function:

int DetectVarStoreMatchKeyValue ( DetectEngineThreadCtx ,
uint8_t *  ,
uint16_t  ,
uint8_t *  ,
uint16_t  ,
int   
)

Store flowvar in det_ctx so we can exec it post-match.

Definition at line 205 of file detect-flowvar.c.

References DetectVarList_::buffer, DetectVarList_::key, DetectVarList_::key_len, DetectVarList_::len, len, DetectVarList_::next, SCCalloc, DetectVarList_::type, type, unlikely, and DetectEngineThreadCtx_::varlist.

Referenced by DetectPcrePayloadMatch().

Here is the caller graph for this function: