detect: constify arguments

pull/12675/head
Victor Julien 5 days ago committed by Victor Julien
parent 39b030b791
commit 98423a0009

@ -69,8 +69,8 @@ void PacketAlertTagInit(void)
* \retval 1 alert is not suppressed
* \retval 0 alert is suppressed
*/
static int PacketAlertHandle(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
const Signature *s, Packet *p, PacketAlert *pa)
static int PacketAlertHandle(const DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
const Signature *s, Packet *p, PacketAlert *pa)
{
SCEnter();
int ret = 1;

@ -947,7 +947,7 @@ static int ThresholdHandlePacketFlow(Flow *f, Packet *p, const DetectThresholdDa
* \retval 1 alert on this event
* \retval 0 do not alert on this event
*/
int PacketAlertThreshold(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
int PacketAlertThreshold(const DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
const DetectThresholdData *td, Packet *p, const Signature *s, PacketAlert *pa)
{
SCEnter();

@ -35,9 +35,8 @@ uint32_t ThresholdsExpire(const SCTime_t ts);
const DetectThresholdData *SigGetThresholdTypeIter(
const Signature *, const SigMatchData **, int list);
int PacketAlertThreshold(DetectEngineCtx *, DetectEngineThreadCtx *,
const DetectThresholdData *, Packet *,
const Signature *, PacketAlert *);
int PacketAlertThreshold(const DetectEngineCtx *, DetectEngineThreadCtx *,
const DetectThresholdData *, Packet *, const Signature *, PacketAlert *);
void ThresholdListFree(void *ptr);
void ThresholdCacheThreadFree(void);

Loading…
Cancel
Save