suricata
detect-dataset.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "threads.h"
#include "datasets.h"
#include "detect-dataset.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "util-debug.h"
#include "util-print.h"
Include dependency graph for detect-dataset.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "([a-z]+)(?:,\\s*([\\-_A-z0-9\\s\\.]+)){1,4}"
 

Functions

int DetectDatasetMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
 
void DetectDatasetFree (void *)
 
void DetectDatasetRegister (void)
 
int DetectDatasetBufferMatch (DetectEngineThreadCtx *det_ctx, const DetectDatasetData *sd, const uint8_t *data, const uint32_t data_len)
 

Detailed Description

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

Implements the dataset keyword

Definition in file detect-dataset.c.

Macro Definition Documentation

#define PARSE_REGEX   "([a-z]+)(?:,\\s*([\\-_A-z0-9\\s\\.]+)){1,4}"

Definition at line 41 of file detect-dataset.c.

Referenced by DetectDatasetRegister().

Function Documentation

void DetectDatasetFree ( void *  ptr)

Definition at line 411 of file detect-dataset.c.

References SCFree.

Referenced by DetectDatasetRegister().

Here is the caller graph for this function:

int DetectDatasetMatch ( ThreadVars ,
DetectEngineThreadCtx ,
Packet ,
const Signature ,
const SigMatchCtx  
)
void DetectDatasetRegister ( void  )

Definition at line 50 of file detect-dataset.c.

References SigTableElmt_::desc, DETECT_DATASET, DetectDatasetFree(), DetectSetupParseRegexes(), DOC_URL, DOC_VERSION, SigTableElmt_::Free, SigTableElmt_::name, PARSE_REGEX, SigTableElmt_::Setup, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function: