suricata
|
#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"
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) |
Implements the dataset keyword
Definition in file detect-dataset.c.
#define DETECT_DATASET_CMD_ISNOTSET 2 |
Definition at line 48 of file detect-dataset.c.
#define DETECT_DATASET_CMD_ISSET 3 |
Definition at line 49 of file detect-dataset.c.
#define DETECT_DATASET_CMD_SET 0 |
Definition at line 46 of file detect-dataset.c.
#define DETECT_DATASET_CMD_UNSET 1 |
Definition at line 47 of file detect-dataset.c.
int DetectDatasetBufferMatch | ( | DetectEngineThreadCtx * | det_ctx, |
const DetectDatasetData * | sd, | ||
const uint8_t * | data, | ||
const uint32_t | data_len | ||
) |
Definition at line 69 of file detect-dataset.c.
References DetectDatasetData_::cmd, DatasetAdd(), DatasetLookup(), DatasetRemove(), DEBUG_VALIDATE_BUG_ON, DETECT_DATASET_CMD_ISNOTSET, DETECT_DATASET_CMD_ISSET, DETECT_DATASET_CMD_SET, DETECT_DATASET_CMD_UNSET, SCLogDebug, and DetectDatasetData_::set.
void DetectDatasetFree | ( | DetectEngineCtx * | de_ctx, |
void * | ptr | ||
) |
Definition at line 445 of file detect-dataset.c.
References SCFree.
int DetectDatasetMatch | ( | ThreadVars * | , |
DetectEngineThreadCtx * | , | ||
Packet * | , | ||
const Signature * | , | ||
const SigMatchCtx * | |||
) |
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().