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 PrefilterPacketU8HashCtx_ PrefilterPacketU8HashCtx
#define PREFILTER_EXTRA_MATCH_DSTPORT
struct PrefilterPacketHeaderCtx_ PrefilterPacketHeaderCtx
#define PREFILTER_EXTRA_MATCH_SRCPORT
#define PREFILTER_EXTRA_MATCH_ALPROTO
#define PREFILTER_EXTRA_MATCH_UNUSED
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))
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))
main detection engine ctx
AppProto alproto
application level protocol
Container for matching data for a signature group.
a single match condition for a signature
struct SigMatch_ * smlists[DETECT_SM_LIST_MAX]
SignatureInitData * init_data