KEYWORD_PROFILING_SET_LIST(det_ctx, DETECT_SM_LIST_SUPPRESS);
smd = NULL;
do {
- td = SigGetThresholdTypeIter(s, p, &smd, DETECT_SM_LIST_SUPPRESS);
+ td = SigGetThresholdTypeIter(s, &smd, DETECT_SM_LIST_SUPPRESS);
if (td != NULL) {
SCLogDebug("td %p", td);
KEYWORD_PROFILING_SET_LIST(det_ctx, DETECT_SM_LIST_THRESHOLD);
smd = NULL;
do {
- td = SigGetThresholdTypeIter(s, p, &smd, DETECT_SM_LIST_THRESHOLD);
+ td = SigGetThresholdTypeIter(s, &smd, DETECT_SM_LIST_THRESHOLD);
if (td != NULL) {
SCLogDebug("td %p", td);
/**
* \brief Return next DetectThresholdData for signature
*
- * \param sig Signature pointer
- * \param p Packet structure
- * \param sm Pointer to a Signature Match pointer
+ * \param sig Signature pointer
+ * \param psm Pointer to a Signature Match pointer
+ * \param list List to return data from
*
* \retval tsh Return the threshold data from signature or NULL if not found
- *
- *
*/
const DetectThresholdData *SigGetThresholdTypeIter(const Signature *sig,
- Packet *p, const SigMatchData **psm, int list)
+ const SigMatchData **psm,
+ int list)
{
const SigMatchData *smd = NULL;
const DetectThresholdData *tsh = NULL;
smd = *psm;
}
- if (p == NULL)
- return NULL;
-
while (1) {
if (smd->type == DETECT_THRESHOLD ||
smd->type == DETECT_DETECTION_FILTER)
int ThresholdIPPairHasThreshold(IPPair *pair);
const DetectThresholdData *SigGetThresholdTypeIter(const Signature *,
- Packet *, const SigMatchData **, int list);
+ const SigMatchData **, int list);
int PacketAlertThreshold(DetectEngineCtx *, DetectEngineThreadCtx *,
const DetectThresholdData *, Packet *,
const Signature *, PacketAlert *);