suricata
|
Go to the source code of this file.
Data Structures | |
struct | PrefilterRuleStore_ |
structure for storing potential rule matches More... | |
Macros | |
#define | PMQ_RESET(pmq) (pmq)->rule_id_array_cnt = 0 |
Typedefs | |
typedef struct PrefilterRuleStore_ | PrefilterRuleStore |
structure for storing potential rule matches More... | |
Functions | |
int | PrefilterAddSidsResize (PrefilterRuleStore *pmq, uint32_t new_size) |
Add array of Signature IDs to rule ID array. More... | |
Definition in file util-prefilter.h.
#define PMQ_RESET | ( | pmq | ) | (pmq)->rule_id_array_cnt = 0 |
Definition at line 45 of file util-prefilter.h.
typedef struct PrefilterRuleStore_ PrefilterRuleStore |
structure for storing potential rule matches
Helper structure for the prefilter engine. The Pattern Matchers and other prefilter engines will add rule id's for potential rule matches
int PrefilterAddSidsResize | ( | PrefilterRuleStore * | pmq, |
uint32_t | new_size | ||
) |
Add array of Signature IDs to rule ID array.
Checks size of the array first
pmq | storage for match results |
new_size | number of Signature IDs needing to be stored. |
Definition at line 69 of file util-prefilter.c.
References PrefilterRuleStore_::rule_id_array, PrefilterRuleStore_::rule_id_array_size, SC_ERR_MEM_ALLOC, SCLogError, SCRealloc, SigIntId, and unlikely.