suricata
util-bloomfilter-counting.c File Reference
Include dependency graph for util-bloomfilter-counting.c:

Go to the source code of this file.

Functions

BloomFilterCountingBloomFilterCountingInit (uint32_t size, uint8_t type, uint8_t iter, uint32_t(*Hash)(const void *, uint16_t, uint8_t, uint32_t))
 
void BloomFilterCountingFree (BloomFilterCounting *bf)
 
void BloomFilterCountingPrint (BloomFilterCounting *bf)
 
int BloomFilterCountingAdd (BloomFilterCounting *bf, const void *data, uint16_t datalen)
 
int BloomFilterCountingRemove (BloomFilterCounting *bf, const void *data, uint16_t datalen)
 
int BloomFilterCountingTest (BloomFilterCounting *bf, const void *data, uint16_t datalen)
 
void BloomFilterCountingRegisterTests (void)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Counting Bloom Filter implementation. Can be used with 8, 16, 32 bits counters.

Definition in file util-bloomfilter-counting.c.

Function Documentation

int BloomFilterCountingAdd ( BloomFilterCounting bf,
const void *  data,
uint16_t  datalen 
)
void BloomFilterCountingFree ( BloomFilterCounting bf)

Definition at line 78 of file util-bloomfilter-counting.c.

References BloomFilterCounting_::array, and SCFree.

Referenced by BloomFilterCountingTest().

Here is the caller graph for this function:

BloomFilterCounting* BloomFilterCountingInit ( uint32_t  size,
uint8_t  type,
uint8_t  iter,
uint32_t(*)(const void *, uint16_t, uint8_t, uint32_t)  Hash 
)
void BloomFilterCountingRegisterTests ( void  )

Definition at line 393 of file util-bloomfilter-counting.c.

References UtRegisterTest().

Here is the call graph for this function:

int BloomFilterCountingRemove ( BloomFilterCounting bf,
const void *  data,
uint16_t  datalen 
)

Definition at line 127 of file util-bloomfilter-counting.c.

References BloomFilterCounting_::array, BloomFilterCounting_::array_size, BloomFilterCountingTest(), BloomFilterCounting_::Hash, BloomFilterCounting_::hash_iterations, and BloomFilterCounting_::type.

Referenced by BloomFilterCountingTest().

Here is the call graph for this function:

Here is the caller graph for this function:

int BloomFilterCountingTest ( BloomFilterCounting bf,
const void *  data,
uint16_t  datalen 
)