return new_head == NULL;
}
-static DetectThresholdEntry *
-DetectThresholdEntryAlloc(const DetectThresholdData *td, Packet *p,
- uint32_t sid, uint32_t gid)
+static DetectThresholdEntry *DetectThresholdEntryAlloc(
+ const DetectThresholdData *td, uint32_t sid, uint32_t gid)
{
SCEnter();
ret = 1;
}
} else {
- *new_tsh = DetectThresholdEntryAlloc(td, p, sid, gid);
+ *new_tsh = DetectThresholdEntryAlloc(td, sid, gid);
ret = 1;
}
if (td->count == 1) {
ret = 1;
} else {
- *new_tsh = DetectThresholdEntryAlloc(td, p, sid, gid);
+ *new_tsh = DetectThresholdEntryAlloc(td, sid, gid);
}
}
break;
}
}
} else {
- *new_tsh = DetectThresholdEntryAlloc(td, p, sid, gid);
+ *new_tsh = DetectThresholdEntryAlloc(td, sid, gid);
/* for the first match we return 1 to
* indicate we should alert */
lookup_tsh->current_count = 1;
}
} else {
- *new_tsh = DetectThresholdEntryAlloc(td, p, sid, gid);
+ *new_tsh = DetectThresholdEntryAlloc(td, sid, gid);
}
break;
}
if (lookup_tsh && IsThresholdReached(lookup_tsh, td, p->ts)) {
RateFilterSetAction(p, pa, td->new_action);
} else if (!lookup_tsh) {
- *new_tsh = DetectThresholdEntryAlloc(td, p, sid, gid);
+ *new_tsh = DetectThresholdEntryAlloc(td, sid, gid);
}
break;
}