*
* \retval tsh Return the threshold data from signature or NULL if not found
*/
-const DetectThresholdData *SigGetThresholdTypeIter(const Signature *sig,
- const SigMatchData **psm,
- int list)
+const DetectThresholdData *SigGetThresholdTypeIter(
+ const Signature *sig, const SigMatchData **psm, int list)
{
const SigMatchData *smd = NULL;
const DetectThresholdData *tsh = NULL;
}
while (1) {
- if (smd->type == DETECT_THRESHOLD ||
- smd->type == DETECT_DETECTION_FILTER)
- {
+ if (smd->type == DETECT_THRESHOLD || smd->type == DETECT_DETECTION_FILTER) {
tsh = (DetectThresholdData *)smd->ctx;
if (smd->is_last) {
int ThresholdIPPairHasThreshold(IPPair *pair);
-const DetectThresholdData *SigGetThresholdTypeIter(const Signature *,
- const SigMatchData **, int list);
+const DetectThresholdData *SigGetThresholdTypeIter(
+ const Signature *, const SigMatchData **, int list);
int PacketAlertThreshold(DetectEngineCtx *, DetectEngineThreadCtx *,
const DetectThresholdData *, Packet *,
const Signature *, PacketAlert *);