* \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;
* \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();
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);