suricata
util-prefilter.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PrefilterRuleStore_
 structure for storing potential rule matches More...
 

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...
 

Detailed Description

Typedef Documentation

◆ 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

Function Documentation

◆ PrefilterAddSidsResize()

int PrefilterAddSidsResize ( PrefilterRuleStore pmq,
uint32_t  new_size 
)

Add array of Signature IDs to rule ID array.

Checks size of the array first

Parameters
pmqstorage for match results
new_sizenumber 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.