Typedefs | Enumerations | Functions

prime_hash.h 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 "../../parser/msg_parser.h"
Include dependency graph for prime_hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

Enumerations

Functions


Detailed Description

Definition in file prime_hash.h.


Enumeration Type Documentation

Possible values are:

  • shs_call_id the content of the Call-ID header field
  • shs_from_uri the entire URI in the From header field
  • shs_from_user the username part of the URI in the From header field
  • shs_to_uri the entire URI in the To header field
  • shs_to_user the username part of the URI in the To header field
  • shs_rand some random data which is not related to any header field
  • shs_error no hash specified

Definition at line 51 of file prime_hash.h.


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: