The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
route.h File Reference
#include "gmap.h"
#include "bmap.h"
#include "if.h"
Include dependency graph for route.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_MULTIPATH_ROUTES
 

Functions

void ** get_gw_gnode (map_node *, map_gnode **, map_bnode **, u_int *, map_gnode *, u_char, u_char, int)
 
int get_gw_ips (map_node *, map_gnode **, map_bnode **, u_int *, quadro_group *, map_gnode *, u_char, u_char, inet_prefix *, map_node **, int)
 
struct nexthoprt_build_nexthop_gw (map_node *node, map_gnode *gnode, int level, int maxhops)
 
void rt_update_node (inet_prefix *dst_ip, void *dst_node, quadro_group *dst_quadg, void *void_gw, interface **, u_char level)
 
void rt_rnodes_update (int check_update_flag)
 
void rt_full_update (int check_update_flag)
 
int rt_get_default_gw (inet_prefix *gw, char *dev_name)
 
int rt_add_gw (char *dev, inet_prefix to, inet_prefix gw, u_char table)
 
int rt_del_gw (char *dev, inet_prefix to, inet_prefix gw, u_char table)
 
int rt_change_gw (char *dev, inet_prefix to, inet_prefix gw, u_char table)
 
int rt_replace_gw (char *dev, inet_prefix to, inet_prefix gw, u_char table)
 
int rt_replace_def_gw (char *dev, inet_prefix gw, u_char table)
 
int rt_delete_def_gw (u_char)
 
int rt_del_loopback_net (void)
 
int rt_append_subnet_src (inet_prefix *src, char *dev)
 

Variables

static const int sub_gw_links [(14+(1+1))]
 

Macro Definition Documentation

#define MAX_MULTIPATH_ROUTES
Value:
24 /* The maximum number of
nexthops used to create a
single multipath route. */

Function Documentation

void** get_gw_gnode ( map_node ,
map_gnode **  ,
map_bnode **  ,
u_int *  ,
map_gnode ,
u_char  ,
u_char  ,
int   
)

Here is the call graph for this function:

Here is the caller graph for this function:

int get_gw_ips ( map_node ,
map_gnode **  ,
map_bnode **  ,
u_int *  ,
quadro_group ,
map_gnode ,
u_char  ,
u_char  ,
inet_prefix ,
map_node **  ,
int   
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rt_add_gw ( char *  dev,
inet_prefix  to,
inet_prefix  gw,
u_char  table 
)

Here is the call graph for this function:

int rt_append_subnet_src ( inet_prefix src,
char *  dev 
)

Here is the call graph for this function:

Here is the caller graph for this function:

struct nexthop* rt_build_nexthop_gw ( map_node node,
map_gnode gnode,
int  level,
int  maxhops 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rt_change_gw ( char *  dev,
inet_prefix  to,
inet_prefix  gw,
u_char  table 
)

Here is the call graph for this function:

int rt_del_gw ( char *  dev,
inet_prefix  to,
inet_prefix  gw,
u_char  table 
)

Here is the call graph for this function:

int rt_del_loopback_net ( void  )

Here is the call graph for this function:

int rt_delete_def_gw ( u_char  )

Here is the call graph for this function:

Here is the caller graph for this function:

void rt_full_update ( int  check_update_flag)

Here is the call graph for this function:

Here is the caller graph for this function:

int rt_get_default_gw ( inet_prefix gw,
char *  dev_name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rt_replace_def_gw ( char *  dev,
inet_prefix  gw,
u_char  table 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rt_replace_gw ( char *  dev,
inet_prefix  to,
inet_prefix  gw,
u_char  table 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void rt_rnodes_update ( int  check_update_flag)

Here is the call graph for this function:

Here is the caller graph for this function:

void rt_update_node ( inet_prefix dst_ip,
void *  dst_node,
quadro_group dst_quadg,
void *  void_gw,
interface **  ,
u_char  level 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int sub_gw_links[(14+(1+1))]
static
Initial value:
= { 4, 3, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1 }