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

Go to the source code of this file.

Macros

#define hashsize(n)   ((uint32_t)1<<(n))
 
#define hashmask(n)   (hashsize(n)-1)
 

Functions

uint32_t hashword (const uint32_t *k, size_t length, uint32_t initval)
 
void hashword2 (const uint32_t *k, size_t length, uint32_t *pc, uint32_t *pb)
 
uint32_t hashlittle (const void *key, size_t length, uint32_t initval)
 
uint32_t hashlittle_safe (const void *key, size_t length, uint32_t initval)
 
void hashlittle2 (const void *key, size_t length, uint32_t *pc, uint32_t *pb)
 
uint32_t hashbig (const void *key, size_t length, uint32_t initval)
 

Macro Definition Documentation

#define hashmask (   n)    (hashsize(n)-1)

Definition at line 41 of file util-hash-lookup3.h.

#define hashsize (   n)    ((uint32_t)1<<(n))

Definition at line 40 of file util-hash-lookup3.h.

Function Documentation

uint32_t hashbig ( const void *  key,
size_t  length,
uint32_t  initval 
)

Definition at line 818 of file util-hash-lookup3.c.

References HASH_BIG_ENDIAN, hashlittle(), hashlittle2(), hashword(), hashword2(), len, m, main(), and mix.

Here is the call graph for this function:

uint32_t hashlittle ( const void *  key,
size_t  length,
uint32_t  initval 
)

Definition at line 283 of file util-hash-lookup3.c.

References HASH_LITTLE_ENDIAN, and mix.

Referenced by hashbig().

Here is the caller graph for this function:

void hashlittle2 ( const void *  key,
size_t  length,
uint32_t *  pc,
uint32_t *  pb 
)

Definition at line 637 of file util-hash-lookup3.c.

References HASH_LITTLE_ENDIAN, mix, and pc.

Referenced by hashbig().

Here is the caller graph for this function:

uint32_t hashlittle_safe ( const void *  key,
size_t  length,
uint32_t  initval 
)

Definition at line 484 of file util-hash-lookup3.c.

References HASH_LITTLE_ENDIAN, and mix.

Referenced by DetectBufferTypeMaxId().

Here is the caller graph for this function:

uint32_t hashword ( const uint32_t *  k,
size_t  length,
uint32_t  initval 
)

Definition at line 174 of file util-hash-lookup3.c.

References mix.

Referenced by hashbig(), HostCleanup(), IPPairCleanup(), ROHashInitFinalize(), and ROHashLookup().

Here is the caller graph for this function:

void hashword2 ( const uint32_t *  k,
size_t  length,
uint32_t *  pc,
uint32_t *  pb 
)

Definition at line 218 of file util-hash-lookup3.c.

References mix.

Referenced by hashbig().

Here is the caller graph for this function: