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 "util-misc.h"
Include dependency graph for detect-datarep.c:

Go to the source code of this file.


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


int DetectDatarepMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
void DetectDatarepFree (DetectEngineCtx *, void *)
void DetectDatarepRegister (void)
int DetectDatarepBufferMatch (DetectEngineThreadCtx *det_ctx, const DetectDatarepData *sd, const uint8_t *data, const uint32_t data_len)

Detailed Description

Victor Julien

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 44 of file detect-datarep.c.

Function Documentation

◆ DetectDatarepBufferMatch()

int DetectDatarepBufferMatch ( DetectEngineThreadCtx det_ctx,
const DetectDatarepData sd,
const uint8_t *  data,
const uint32_t  data_len 

◆ DetectDatarepFree()

void DetectDatarepFree ( DetectEngineCtx de_ctx,
void *  ptr 

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

References SCFree.

◆ DetectDatarepMatch()

int DetectDatarepMatch ( ThreadVars ,
DetectEngineThreadCtx ,
Packet ,
const Signature ,
const SigMatchCtx  

◆ DetectDatarepRegister()

void DetectDatarepRegister ( void  )

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

References SigTableElmt_::desc, DETECT_DATAREP, SigTableElmt_::name, SigTableElmt_::Setup, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function: