suricata
util-bloomfilter.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  BloomFilter_
 

Typedefs

typedef struct BloomFilter_ BloomFilter
 

Functions

BloomFilterBloomFilterInit (uint32_t, uint8_t, uint32_t(*Hash)(const void *, uint16_t, uint8_t, uint32_t))
 
void BloomFilterFree (BloomFilter *)
 
void BloomFilterPrint (BloomFilter *)
 
int BloomFilterAdd (BloomFilter *, const void *, uint16_t)
 
uint32_t BloomFilterMemoryCnt (BloomFilter *)
 
uint32_t BloomFilterMemorySize (BloomFilter *)
 
void BloomFilterRegisterTests (void)
 

Detailed Description

Typedef Documentation

typedef struct BloomFilter_ BloomFilter

Function Documentation

int BloomFilterAdd ( BloomFilter ,
const void *  ,
uint16_t   
)

Definition at line 89 of file util-bloomfilter.c.

References BloomFilter_::bitarray, BloomFilter_::bitarray_size, BloomFilter_::Hash, and BloomFilter_::hash_iterations.

Referenced by BloomFilterMemorySize().

Here is the caller graph for this function:

void BloomFilterFree ( BloomFilter )

Definition at line 69 of file util-bloomfilter.c.

References BloomFilter_::bitarray, and SCFree.

Referenced by BloomFilterMemorySize().

Here is the caller graph for this function:

BloomFilter* BloomFilterInit ( uint32_t  ,
uint8_t  ,
uint32_t(*)(const void *, uint16_t, uint8_t, uint32_t)  Hash 
)

Definition at line 30 of file util-bloomfilter.c.

References BloomFilter_::bitarray, BloomFilter_::bitarray_size, BloomFilter_::Hash, BloomFilter_::hash_iterations, SCFree, SCMalloc, and unlikely.

Referenced by BloomFilterMemorySize().

Here is the caller graph for this function:

uint32_t BloomFilterMemoryCnt ( BloomFilter )

Definition at line 105 of file util-bloomfilter.c.

uint32_t BloomFilterMemorySize ( BloomFilter )

Definition at line 113 of file util-bloomfilter.c.

References BloomFilter_::bitarray_size, BloomFilterAdd(), BloomFilterFree(), BloomFilterInit(), and BloomFilter_::Hash.

Here is the call graph for this function:

void BloomFilterPrint ( BloomFilter )
void BloomFilterRegisterTests ( void  )

Definition at line 275 of file util-bloomfilter.c.

References UtRegisterTest().

Here is the call graph for this function: