Go to the documentation of this file.
18 #ifndef SURICATA_DETECT_ENGINE_PREFILTER_COMMON_H
19 #define SURICATA_DETECT_ENGINE_PREFILTER_COMMON_H
30 #define PREFILTER_EXTRA_MATCH_UNUSED 0
31 #define PREFILTER_EXTRA_MATCH_ALPROTO 1
32 #define PREFILTER_EXTRA_MATCH_SRCPORT 2
33 #define PREFILTER_EXTRA_MATCH_DSTPORT 3
56 #define PREFILTER_U8HASH_MODE_EQ DetectUintModeEqual
57 #define PREFILTER_U8HASH_MODE_LT DetectUintModeLt
58 #define PREFILTER_U8HASH_MODE_GT DetectUintModeGt
59 #define PREFILTER_U8HASH_MODE_RA DetectUintModeRange
84 if (p->
sp !=
ctx->value)
88 if (p->
dp !=
ctx->value)
99 if (sm->
type == kid) {
struct SigMatch_ * smlists[DETECT_SM_LIST_MAX]
struct PrefilterPacketHeaderCtx_ PrefilterPacketHeaderCtx
Container for matching data for a signature group.
main detection engine ctx
struct PrefilterPacketU8HashCtx_ PrefilterPacketU8HashCtx
#define PREFILTER_EXTRA_MATCH_SRCPORT
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))
#define PREFILTER_EXTRA_MATCH_DSTPORT
SignatureInitData * init_data
struct SigsArray_ SigsArray
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))
a single match condition for a signature
AppProto alproto
application level protocol
#define PREFILTER_EXTRA_MATCH_UNUSED
#define PREFILTER_EXTRA_MATCH_ALPROTO