The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
rehook.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REHOOK_PER_INSTANCE   8
 
#define REHOOK_INSTANCE_TIME(level)   (REHOOK_PER_INSTANCE*(level)*60)
 
#define REHOOK_WAIT_TIME(level)   (( (8<<(level)) - (1<<(level)) ) * 60)
 
#define CHALLENGE_THRESHOLD
 

Functions

void rehook_init (void)
 
void new_rehook (map_gnode *gnode, int gid, int level, int gnode_count)
 
int rehook (map_gnode *hook_gnode, int hook_level)
 

Variables

int rehook_mutex
 
time_t last_instance_rehook
 
int total_rehooks
 
inet_prefix rk_gnode_ip
 

Macro Definition Documentation

#define CHALLENGE_THRESHOLD
Value:
(1<<16) /* When the gnode X, which must
rehook, has a gnode_count >= (1<<16)
it sends a new challenge. */
#define REHOOK_INSTANCE_TIME (   level)    (REHOOK_PER_INSTANCE*(level)*60)
#define REHOOK_PER_INSTANCE   8
#define REHOOK_WAIT_TIME (   level)    (( (8<<(level)) - (1<<(level)) ) * 60)

Function Documentation

void new_rehook ( map_gnode gnode,
int  gid,
int  level,
int  gnode_count 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rehook ( map_gnode hook_gnode,
int  hook_level 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void rehook_init ( void  )

Here is the caller graph for this function:

Variable Documentation

time_t last_instance_rehook
int rehook_mutex
inet_prefix rk_gnode_ip
int total_rehooks