Functions

prime_hash.c File Reference

Functions for determinung a pseudo random number over a message's header field, based on CRC32 or a prime number algorithm. More...

#include "../../sr_module.h"
#include "../../parser/parse_uri.h"
#include "../../parser/parse_to.h"
#include "../../parser/parse_from.h"
#include "../../crc.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include "prime_hash.h"
Include dependency graph for prime_hash.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file prime_hash.c.


Function Documentation

int hash_func ( struct sip_msg msg,
enum hash_source  source,
int  denominator 
)

The hash algorith is CRC32.

Definition at line 55 of file prime_hash.c.

References crc32_uint().

Referenced by rewrite_on_rule().

Here is the call graph for this function:

Here is the caller graph for this function: