Go to the documentation of this file.
42 static int DetectSCTPVtagMatch(
46 static bool PrefilterSCTPVtagIsPrefilterable(
const Signature *s);
65 static int DetectSCTPVtagMatch(
72 if (!(PacketIsSCTP(
p))) {
87 DetectSCTPVtagFree(
de_ctx, data);
99 static void PrefilterPacketSCTPVtagMatch(
105 if (!PrefilterPacketHeaderExtraMatch(
ctx,
p))
110 du32.mode =
ctx->v1.u8[0];
111 du32.arg1 =
ctx->v1.u32[1];
112 du32.arg2 =
ctx->v1.u32[2];
115 PrefilterAddSids(&det_ctx->
pmq,
ctx->sigs_array,
ctx->sigs_cnt);
126 static bool PrefilterSCTPVtagIsPrefilterable(
const Signature *s)
#define SIG_MASK_REQUIRE_REAL_PKT
int DetectU32Match(const uint32_t parg, const DetectUintData_u32 *du32)
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.
void PrefilterPacketU32Set(PrefilterPacketHeaderValue *v, void *smctx)
main detection engine ctx
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
void DetectSCTPVtagRegisterTests(void)
int(* SetupPrefilter)(DetectEngineCtx *de_ctx, struct SigGroupHead_ *sgh)
SigMatch * SCSigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.
#define SCTP_GET_RAW_VTAG(sctph)
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))
bool PrefilterPacketU32Compare(PrefilterPacketHeaderValue v, void *smctx)
int(* Match)(DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
void DetectSCTPVtagRegister(void)
DetectUintData_u32 DetectU32Data
bool(* SupportsPrefilter)(const Signature *s)
#define SIGMATCH_INFO_UINT32
#define DEBUG_VALIDATE_BUG_ON(exp)
#define SIG_FLAG_REQUIRE_PACKET