suricata
detect-engine-prefilter-common.h File Reference
#include "rust.h"
Include dependency graph for detect-engine-prefilter-common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  PrefilterPacketHeaderValue
 
struct  PrefilterPacketHeaderCtx_
 
struct  SigsArray_
 
struct  PrefilterPacketU8HashCtx_
 

Macros

#define PREFILTER_EXTRA_MATCH_UNUSED   0
 
#define PREFILTER_EXTRA_MATCH_ALPROTO   1
 
#define PREFILTER_EXTRA_MATCH_SRCPORT   2
 
#define PREFILTER_EXTRA_MATCH_DSTPORT   3
 
#define PREFILTER_U8HASH_MODE_EQ   DetectUintModeEqual
 
#define PREFILTER_U8HASH_MODE_LT   DetectUintModeLt
 
#define PREFILTER_U8HASH_MODE_GT   DetectUintModeGt
 
#define PREFILTER_U8HASH_MODE_RA   DetectUintModeRange
 

Typedefs

typedef struct PrefilterPacketHeaderCtx_ PrefilterPacketHeaderCtx
 
typedef struct SigsArray_ SigsArray
 
typedef struct PrefilterPacketU8HashCtx_ PrefilterPacketU8HashCtx
 

Functions

int PrefilterSetupPacketHeader (DetectEngineCtx *de_ctx, SigGroupHead *sgh, int sm_type, SignatureMask mask, void(*Set)(PrefilterPacketHeaderValue *v, void *), bool(*Compare)(PrefilterPacketHeaderValue v, void *), void(*Match)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx))
 
int PrefilterSetupPacketHeaderU8Hash (DetectEngineCtx *de_ctx, SigGroupHead *sgh, int sm_type, SignatureMask mask, void(*Set)(PrefilterPacketHeaderValue *v, void *), bool(*Compare)(PrefilterPacketHeaderValue v, void *), void(*Match)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx))
 

Macro Definition Documentation

◆ PREFILTER_EXTRA_MATCH_ALPROTO

#define PREFILTER_EXTRA_MATCH_ALPROTO   1

Definition at line 32 of file detect-engine-prefilter-common.h.

◆ PREFILTER_EXTRA_MATCH_DSTPORT

#define PREFILTER_EXTRA_MATCH_DSTPORT   3

Definition at line 34 of file detect-engine-prefilter-common.h.

◆ PREFILTER_EXTRA_MATCH_SRCPORT

#define PREFILTER_EXTRA_MATCH_SRCPORT   2

Definition at line 33 of file detect-engine-prefilter-common.h.

◆ PREFILTER_EXTRA_MATCH_UNUSED

#define PREFILTER_EXTRA_MATCH_UNUSED   0

Definition at line 31 of file detect-engine-prefilter-common.h.

◆ PREFILTER_U8HASH_MODE_EQ

#define PREFILTER_U8HASH_MODE_EQ   DetectUintModeEqual

Definition at line 57 of file detect-engine-prefilter-common.h.

◆ PREFILTER_U8HASH_MODE_GT

#define PREFILTER_U8HASH_MODE_GT   DetectUintModeGt

Definition at line 59 of file detect-engine-prefilter-common.h.

◆ PREFILTER_U8HASH_MODE_LT

#define PREFILTER_U8HASH_MODE_LT   DetectUintModeLt

Definition at line 58 of file detect-engine-prefilter-common.h.

◆ PREFILTER_U8HASH_MODE_RA

#define PREFILTER_U8HASH_MODE_RA   DetectUintModeRange

Definition at line 60 of file detect-engine-prefilter-common.h.

Typedef Documentation

◆ PrefilterPacketHeaderCtx

◆ PrefilterPacketU8HashCtx

◆ SigsArray

typedef struct SigsArray_ SigsArray

Function Documentation

◆ PrefilterSetupPacketHeader()

int PrefilterSetupPacketHeader ( DetectEngineCtx de_ctx,
SigGroupHead sgh,
int  sm_type,
SignatureMask  mask,
void(*)(PrefilterPacketHeaderValue *v, void *)  Set,
bool(*)(PrefilterPacketHeaderValue v, void *)  Compare,
void(*)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx)  Match 
)

Definition at line 404 of file detect-engine-prefilter-common.c.

◆ PrefilterSetupPacketHeaderU8Hash()

int PrefilterSetupPacketHeaderU8Hash ( DetectEngineCtx de_ctx,
SigGroupHead sgh,
int  sm_type,
SignatureMask  mask,
void(*)(PrefilterPacketHeaderValue *v, void *)  Set,
bool(*)(PrefilterPacketHeaderValue v, void *)  Compare,
void(*)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx)  Match 
)

Definition at line 396 of file detect-engine-prefilter-common.c.