Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

hash_func.h File Reference

#include "str.h"
#include "hashes.h"

Go to the source code of this file.

Defines

#define T_TABLE_POWER   16
#define TABLE_ENTRIES   (1 << (T_TABLE_POWER))
#define new_hash2(call_id, cseq_nr)   (get_hash2_raw(&(call_id), &(cseq_nr)) & (TABLE_ENTRIES-1))
#define hash(cid, cseq)   new_hash2( cid, cseq )

Functions

unsigned int new_hash (str call_id, str cseq_nr)


Define Documentation

#define hash cid,
cseq   )     new_hash2( cid, cseq )
 

Definition at line 46 of file hash_func.h.

Referenced by delete_im_hash(), dlg2hash(), ds_hash_callid(), ds_hash_fromuri(), ds_hash_ruri(), ds_hash_touri(), ds_select_dst_impl(), forward_request(), free_hash(), free_im_hash(), hash_table_insert(), hashtest_cycle(), init_hash(), insert_im_hash(), insert_into_hash_table_unsafe(), load_db(), match_hash_table(), new_im_hash(), pdt_add_to_hash(), pdt_free_hash(), pdt_init_hash(), pdt_print_hash(), pdt_remove_from_hash(), qm_find_free(), qm_insert_free(), qm_malloc(), reload_im_cache(), rshash(), sha_hash(), sha_init(), t_lookup_callid(), t_lookup_request(), and t_lookupOriginalT().

#define new_hash2 call_id,
cseq_nr   )     (get_hash2_raw(&(call_id), &(cseq_nr)) & (TABLE_ENTRIES-1))
 

Definition at line 42 of file hash_func.h.

#define T_TABLE_POWER   16
 

Definition at line 37 of file hash_func.h.

#define TABLE_ENTRIES   (1 << (T_TABLE_POWER))
 

Definition at line 38 of file hash_func.h.

Referenced by hashtest(), new_hash(), t_lookup_callid(), t_lookup_ident(), t_reply_matching(), and tm_rpc_hash_stats().


Function Documentation

unsigned int new_hash str  call_id,
str  cseq_nr
 

Definition at line 48 of file hash_func.c.

References ccitt_tab, crc_16_tab, str, TABLE_ENTRIES, and trim_len.


Generated on Thu Jul 29 04:15:54 2010 for SIPExpressRouter by  doxygen 1.3.9.1