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

#define PREFILTER_EXTRA_MATCH_ALPROTO   1

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

#define PREFILTER_EXTRA_MATCH_DSTPORT   3

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

#define PREFILTER_EXTRA_MATCH_SRCPORT   2

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

#define PREFILTER_EXTRA_MATCH_UNUSED   0

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

#define PREFILTER_U8HASH_MODE_EQ   0

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

#define PREFILTER_U8HASH_MODE_GT   2

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

#define PREFILTER_U8HASH_MODE_LT   1

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

#define PREFILTER_U8HASH_MODE_RA   3

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

Typedef Documentation

typedef struct SigsArray_ SigsArray

Function Documentation

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 
)
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 395 of file detect-engine-prefilter-common.c.

References TRUE.

Referenced by DetectICodeFree(), and DetectITypeFree().

Here is the caller graph for this function: