suricata
|
#include "util-debug.h"
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... | |
int | PmqSetup (PrefilterRuleStore *) |
Setup a pmq. More... | |
void | PmqReset (PrefilterRuleStore *) |
Reset a Pmq for reusage. Meant to be called after a single search. More... | |
void | PmqCleanup (PrefilterRuleStore *) |
Cleanup a Pmq. More... | |
void | PmqFree (PrefilterRuleStore *) |
Cleanup and free a Pmq. More... | |
Definition in file util-prefilter.h.
#define PMQ_RESET | ( | pmq | ) | (pmq)->rule_id_array_cnt = 0 |
Definition at line 47 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
void PmqCleanup | ( | PrefilterRuleStore * | pmq | ) |
Cleanup a Pmq.
pmq | Pattern matcher queue to be cleaned up. |
Definition at line 113 of file util-prefilter.c.
References PrefilterRuleStore_::rule_id_array, and SCFree.
Referenced by PmqFree().
void PmqFree | ( | PrefilterRuleStore * | pmq | ) |
Cleanup and free a Pmq.
pmq | Pattern matcher queue to be free'd. |
Definition at line 126 of file util-prefilter.c.
References PmqCleanup().
void PmqReset | ( | PrefilterRuleStore * | pmq | ) |
Reset a Pmq for reusage. Meant to be called after a single search.
pmq | Pattern matcher to be reset. |
Definition at line 102 of file util-prefilter.c.
References PMQ_RESET.
int PmqSetup | ( | PrefilterRuleStore * | pmq | ) |
Setup a pmq.
pmq | Pattern matcher queue to be initialized |
-1 | error |
0 | ok |
Definition at line 37 of file util-prefilter.c.
References PrefilterRuleStore_::rule_id_array, PrefilterRuleStore_::rule_id_array_cnt, PrefilterRuleStore_::rule_id_array_size, SCEnter, SCMalloc, SCReturnInt, and SigIntId.
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 70 of file util-prefilter.c.
References PrefilterRuleStore_::rule_id_array, PrefilterRuleStore_::rule_id_array_size, SCLogError, SCRealloc, SigIntId, and unlikely.