/home/tomh/openhip/hip-0.5/src/protocol/hip_cache.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <openssl/sha.h>
#include <openssl/dsa.h>
#include <openssl/asn1.h>
#include <openssl/rand.h>
#include <netinet/ip6.h>
#include <sys/types.h>
#include <errno.h>
#include <hip/hip_types.h>
#include <hip/hip_globals.h>
#include <hip/hip_funcs.h>

Functions

void init_all_R1_caches ()
void init_R1_cache (hi_node *hi)
hipcookiegenerate_cookie ()
void replace_next_R1 ()
int compute_R1_cache_index (hip_hit *hiti, __u8 current)
int calculate_r1_length (hi_node *hi)
void init_dh_cache ()
dh_cache_entrynew_dh_cache_entry (__u8 group_id)
dh_cache_entryget_dh_entry (__u8 group_id, int new)
void unuse_dh_entry (DH *dh)
void expire_old_dh_entries ()

Variables

static __u32 current_rand
static __u32 previous_rand
static int current_index = 0

Function Documentation

int calculate_r1_length ( hi_node hi  ) 

int compute_R1_cache_index ( hip_hit hiti,
__u8  current 
)

void expire_old_dh_entries (  ) 

hipcookie* generate_cookie (  ) 

dh_cache_entry* get_dh_entry ( __u8  group_id,
int  new 
)

void init_all_R1_caches (  ) 

void init_dh_cache (  ) 

void init_R1_cache ( hi_node hi  ) 

dh_cache_entry* new_dh_cache_entry ( __u8  group_id  ) 

void replace_next_R1 (  ) 

void unuse_dh_entry ( DH *  dh  ) 


Variable Documentation

int current_index = 0 [static]

__u32 current_rand [static]

__u32 previous_rand [static]


Generated on Mon Oct 22 11:43:43 2007 for OpenHIP by  doxygen 1.5.1