Go to the documentation of this file.
40 static int DetectSCTPChunkCntMatch(
46 static bool PrefilterSCTPChunkCntIsPrefilterable(
const Signature *s);
61 static int DetectSCTPChunkCntMatch(
66 if (!PacketIsSCTP(
p)) {
94 SCDetectU16Free(data);
97 static void PrefilterPacketSCTPChunkCntMatch(
102 if (PacketIsSCTP(
p)) {
106 du16.mode =
ctx->v1.u8[0];
107 du16.arg1 =
ctx->v1.u16[1];
108 du16.arg2 =
ctx->v1.u16[2];
110 PrefilterAddSids(&det_ctx->
pmq,
ctx->sigs_array,
ctx->sigs_cnt);
121 static bool PrefilterSCTPChunkCntIsPrefilterable(
const Signature *s)
#define SIG_MASK_REQUIRE_REAL_PKT
void PrefilterPacketU16Set(PrefilterPacketHeaderValue *v, void *smctx)
SigTableElmt * sigmatch_table
void(* Free)(DetectEngineCtx *, void *)
#define PKT_IS_PSEUDOPKT(p)
return 1 if the packet is a pseudo packet
Container for matching data for a signature group.
main detection engine ctx
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
void DetectSCTPChunkCntFree(DetectEngineCtx *, void *)
int(* SetupPrefilter)(DetectEngineCtx *de_ctx, struct SigGroupHead_ *sgh)
#define SIGMATCH_INFO_UINT16
SigMatch * SCSigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.
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(* Match)(DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
int DetectU16Match(const uint16_t parg, const DetectUintData_u16 *du16)
DetectUintData_u16 * DetectU16Parse(const char *u16str)
This function is used to parse u16 options passed via some u16 keyword.
bool PrefilterPacketU16Compare(PrefilterPacketHeaderValue v, void *smctx)
bool(* SupportsPrefilter)(const Signature *s)
void DetectSCTPChunkCntRegister(void)
DetectUintData_u16 DetectU16Data
#define DEBUG_VALIDATE_BUG_ON(exp)
union PacketL4::L4Vars vars
#define SIG_FLAG_REQUIRE_PACKET