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

hash_func.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "hash_func.h"
#include "dprint.h"
#include "crc.h"
#include "ut.h"

Go to the source code of this file.

Functions

unsigned int new_hash (str call_id, str cseq_nr)
void hashtest_cycle (int hits[TABLE_ENTRIES+5], char *ip)
void hashtest ()

Variables

unsigned long int crc_32_tab []
unsigned short int ccitt_tab []
unsigned short int crc_16_tab []


Function Documentation

void hashtest  ) 
 

Definition at line 159 of file hash_func.c.

References exit, hashtest_cycle(), and TABLE_ENTRIES.

void hashtest_cycle int  hits[TABLE_ENTRIES+5],
char *  ip
 

Definition at line 134 of file hash_func.c.

References hash, _str::len, _str::s, and str.

Referenced by hashtest().

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.


Variable Documentation

unsigned short int ccitt_tab[]
 

Definition at line 138 of file crc.c.

Referenced by new_hash().

unsigned short int crc_16_tab[]
 

Definition at line 173 of file crc.c.

Referenced by new_hash().

unsigned long int crc_32_tab[]
 

Definition at line 92 of file crc.c.


Generated on Wed Jan 7 04:10:18 2009 for SIPExpressRouter by  doxygen 1.3.9.1