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

Go to the source code of this file.

Macros

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

Functions

int DetectDatarepMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
 
void DetectDatarepFree (void *)
 
void DetectDatarepRegister (void)
 
int DetectDatarepBufferMatch (DetectEngineThreadCtx *det_ctx, const DetectDatarepData *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 datarep keyword

Definition in file detect-datarep.c.

Macro Definition Documentation

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

Definition at line 42 of file detect-datarep.c.

Referenced by DetectDatarepRegister().

Function Documentation

void DetectDatarepFree ( void *  ptr)

Definition at line 357 of file detect-datarep.c.

References SCFree.

Referenced by DetectDatarepRegister().

Here is the caller graph for this function:

int DetectDatarepMatch ( ThreadVars ,
DetectEngineThreadCtx ,
Packet ,
const Signature ,
const SigMatchCtx  
)
void DetectDatarepRegister ( void  )

Definition at line 51 of file detect-datarep.c.

References SigTableElmt_::desc, DETECT_DATAREP, DetectDatarepFree(), 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: