Skip to content

Commit

Permalink
dummy draft proposal ?
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Jun 25, 2024
1 parent 4ec1ed4 commit 346853e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/detect-engine-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,11 @@ static bool PrefilterDecodeEventIsPrefilterable(const Signature *s)

static void PrefilterPacketEventSet(PrefilterPacketHeaderValue *v, void *smctx)
{
const DetectEngineEventData *a = smctx;
v->u8[0] = a->event;
}

static bool PrefilterPacketEventCompare(PrefilterPacketHeaderValue v, void *smctx)
{
const DetectEngineEventData *a = smctx;
return (v.u8[0] == a->event);
return true;
}

static void PrefilterPacketEventMatch(DetectEngineThreadCtx *det_ctx, Packet *p, const void *pectx)
Expand All @@ -96,10 +93,7 @@ static void PrefilterPacketEventMatch(DetectEngineThreadCtx *det_ctx, Packet *p,
if (!PrefilterPacketHeaderExtraMatch(ctx, p))
return;

DetectEngineEventData de;
de.event = ctx->v1.u8[0];

if (ENGINE_ISSET_EVENT(p, de.event)) {
if (p->events.cnt > 0) {
PrefilterAddSids(&det_ctx->pmq, ctx->sigs_array, ctx->sigs_cnt);
}
}
Expand Down

0 comments on commit 346853e

Please sign in to comment.