|
suricata
|

Go to the source code of this file.
Functions | |
| int | PmqSetup (PrefilterRuleStore *pmq) |
| Setup a pmq. More... | |
| int | PrefilterAddSidsResize (PrefilterRuleStore *pmq, uint32_t new_size) |
| Add array of Signature IDs to rule ID array. More... | |
| void | PmqReset (PrefilterRuleStore *pmq) |
| Reset a Pmq for reusage. Meant to be called after a single search. More... | |
| void | PmqCleanup (PrefilterRuleStore *pmq) |
| Cleanup a Pmq. More... | |
| void | PmqFree (PrefilterRuleStore *pmq) |
| Cleanup and free a Pmq. More... | |
Pattern matcher utility Functions
Definition in file util-prefilter.c.
| 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.