suricata
detect-tag.c File Reference
#include "suricata-common.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-tag.h"
#include "detect-engine-tag.h"
#include "detect-engine.h"
#include "detect-engine-state.h"
#include "app-layer-parser.h"
#include "decode.h"
#include "flow.h"
#include "flow-var.h"
#include "flow-util.h"
#include "stream-tcp-private.h"
#include "util-time.h"
#include "util-byte.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-debug.h"
#include "threads.h"
Include dependency graph for detect-tag.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*(host|session)\\s*(,\\s*(\\d+)\\s*,\\s*(packets|bytes|seconds)\\s*(,\\s*(src|dst))?\\s*)?$"
 

Functions

 SC_ATOMIC_EXTERN (unsigned int, num_tags)
 
void DetectTagDataFree (DetectEngineCtx *de_ctx, void *ptr)
 this function will free memory associated with DetectTagData More...
 
void DetectTagRegister (void)
 Registration function for keyword tag. More...
 
void DetectTagDataListFree (void *ptr)
 this function will free all the entries of a list DetectTagDataEntry More...
 

Detailed Description

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*(host|session)\\s*(,\\s*(\\d+)\\s*,\\s*(packets|bytes|seconds)\\s*(,\\s*(src|dst))?\\s*)?$"

Definition at line 55 of file detect-tag.c.

Function Documentation

◆ DetectTagDataFree()

void DetectTagDataFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectTagData

Parameters
tdpointer to DetectTagData

Definition at line 355 of file detect-tag.c.

References SCFree.

◆ DetectTagDataListFree()

void DetectTagDataListFree ( void *  ptr)

this function will free all the entries of a list DetectTagDataEntry

Parameters
tdpointer to DetectTagDataEntryList

Definition at line 336 of file detect-tag.c.

References DetectTagDataEntry_::next.

◆ DetectTagRegister()

void DetectTagRegister ( void  )

Registration function for keyword tag.

Definition at line 69 of file detect-tag.c.

References DETECT_TAG, SigTableElmt_::Match, SigTableElmt_::name, and sigmatch_table.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ SC_ATOMIC_EXTERN()

SC_ATOMIC_EXTERN ( unsigned int  ,
num_tags   
)