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 "util-misc.h"
#include "util-path.h"
#include "util-conf.h"
#include "util-validate.h"
Include dependency graph for detect-dataset.c:

Go to the source code of this file.

Macros

#define DETECT_DATASET_CMD_SET   0
 
#define DETECT_DATASET_CMD_UNSET   1
 
#define DETECT_DATASET_CMD_ISNOTSET   2
 
#define DETECT_DATASET_CMD_ISSET   3
 

Functions

int DetectDatasetMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
 
void DetectDatasetFree (DetectEngineCtx *, 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

◆ DETECT_DATASET_CMD_ISNOTSET

#define DETECT_DATASET_CMD_ISNOTSET   2

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

◆ DETECT_DATASET_CMD_ISSET

#define DETECT_DATASET_CMD_ISSET   3

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

◆ DETECT_DATASET_CMD_SET

#define DETECT_DATASET_CMD_SET   0

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

◆ DETECT_DATASET_CMD_UNSET

#define DETECT_DATASET_CMD_UNSET   1

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

Function Documentation

◆ DetectDatasetBufferMatch()

int DetectDatasetBufferMatch ( DetectEngineThreadCtx det_ctx,
const DetectDatasetData sd,
const uint8_t *  data,
const uint32_t  data_len 
)

◆ DetectDatasetFree()

void DetectDatasetFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

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

References SCFree.

◆ DetectDatasetMatch()

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

◆ DetectDatasetRegister()

void DetectDatasetRegister ( void  )

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

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

Referenced by SigTableSetup().

Here is the caller graph for this function: