suricata
detect-engine-prefilter-common.h File Reference
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   0
 
#define PREFILTER_U8HASH_MODE_LT   1
 
#define PREFILTER_U8HASH_MODE_GT   2
 
#define PREFILTER_U8HASH_MODE_RA   3
 

Typedefs

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

Functions

int PrefilterSetupPacketHeader (DetectEngineCtx *de_ctx, SigGroupHead *sgh, int sm_type, 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, 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 29 of file detect-engine-prefilter-common.h.

◆ PREFILTER_EXTRA_MATCH_DSTPORT

#define PREFILTER_EXTRA_MATCH_DSTPORT   3

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

◆ PREFILTER_EXTRA_MATCH_SRCPORT

#define PREFILTER_EXTRA_MATCH_SRCPORT   2

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

◆ PREFILTER_EXTRA_MATCH_UNUSED

#define PREFILTER_EXTRA_MATCH_UNUSED   0

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

◆ PREFILTER_U8HASH_MODE_EQ

#define PREFILTER_U8HASH_MODE_EQ   0

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

◆ PREFILTER_U8HASH_MODE_GT

#define PREFILTER_U8HASH_MODE_GT   2

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

◆ PREFILTER_U8HASH_MODE_LT

#define PREFILTER_U8HASH_MODE_LT   1

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

◆ PREFILTER_U8HASH_MODE_RA

#define PREFILTER_U8HASH_MODE_RA   3

Definition at line 57 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,
void(*)(PrefilterPacketHeaderValue *v, void *)  Set,
bool(*)(PrefilterPacketHeaderValue v, void *)  Compare,
void(*)(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx)  Match 
)

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

◆ PrefilterSetupPacketHeaderU8Hash()

int PrefilterSetupPacketHeaderU8Hash ( DetectEngineCtx de_ctx,
SigGroupHead sgh,
int  sm_type,
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.