ipr.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  oroute
struct  iroute

Defines

#define ORTD_UNREACHABLE   512
#define ORTF_EMPTY   0
#define ORTF_INUSE   1
#define ORTF_STATIC   2
#define IRTD_UNREACHABLE   512
#define IRTF_EMPTY   0
#define IRTF_INUSE   1
#define IRTF_STATIC   2
#define IPR_UNRCH_TIMEOUT   (60L * HZ)
#define IPR_TTL_TIMEOUT   (60L * HZ)
#define IPR_REDIRECT_TIMEOUT   (20 * 60L * HZ)
#define IPR_GW_DOWN_TIMEOUT   (60L * HZ)
#define IPR_MTU_TIMEOUT   (10*60L * HZ)

Typedefs

typedef oroute oroute_t
typedef iroute iroute_t

Functions

iroute_t *iroute_frag ARGS ((int port_nr, ipaddr_t dest))
int oroute_frag ARGS ((int port_nr, ipaddr_t dest, int ttl, size_t msgsize, ipaddr_t *nexthop))
void ipr_init ARGS ((void))
int ipr_get_iroute ARGS ((int ent_no, nwio_route_t *route_ent))
int ipr_add_iroute ARGS ((int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t gateway, int dist, int mtu, int static_route, iroute_t **route_p))
int ipr_del_iroute ARGS ((int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t gateway, int static_route))
void ipr_chk_itab ARGS ((int port_nr, ipaddr_t addr, ipaddr_t mask))
int ipr_add_oroute ARGS ((int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t gateway, time_t timeout, int dist, int mtu, int static_route, i32_t preference, oroute_t **route_p))
void ipr_gateway_down ARGS ((int port_nr, ipaddr_t gateway, time_t timeout))
void ipr_redirect ARGS ((int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t old_gateway, ipaddr_t new_gateway, time_t timeout))
void ipr_destunrch ARGS ((int port_nr, ipaddr_t dest, ipaddr_t subnetmask, time_t timeout))
void ipr_mtu ARGS ((int port_nr, ipaddr_t dest, U16_t mtu, time_t timeout))


Define Documentation

#define IPR_GW_DOWN_TIMEOUT   (60L * HZ)
 

Definition at line 54 of file ipr.h.

#define IPR_MTU_TIMEOUT   (10*60L * HZ)
 

Definition at line 55 of file ipr.h.

Referenced by icmp_dst_unreach().

#define IPR_REDIRECT_TIMEOUT   (20 * 60L * HZ)
 

Definition at line 53 of file ipr.h.

Referenced by icmp_redirect().

#define IPR_TTL_TIMEOUT   (60L * HZ)
 

Definition at line 52 of file ipr.h.

Referenced by icmp_time_exceeded().

#define IPR_UNRCH_TIMEOUT   (60L * HZ)
 

Definition at line 51 of file ipr.h.

Referenced by icmp_dst_unreach().

#define IRTD_UNREACHABLE   512
 

Definition at line 45 of file ipr.h.

Referenced by ipr_get_iroute(), and route_packets().

#define IRTF_EMPTY   0
 

Definition at line 47 of file ipr.h.

Referenced by ipr_init().

#define IRTF_INUSE   1
 

Definition at line 48 of file ipr.h.

Referenced by ipr_add_iroute(), ipr_chk_itab(), ipr_del_iroute(), ipr_get_iroute(), and iroute_frag().

#define IRTF_STATIC   2
 

Definition at line 49 of file ipr.h.

#define ORTD_UNREACHABLE   512
 

Definition at line 28 of file ipr.h.

Referenced by ip_send(), ipr_destunrch(), ipr_gateway_down(), and ipr_redirect().

#define ORTF_EMPTY   0
 

Definition at line 30 of file ipr.h.

Referenced by ipr_init().

#define ORTF_INUSE   1
 

Definition at line 31 of file ipr.h.

#define ORTF_STATIC   2
 

Definition at line 32 of file ipr.h.


Typedef Documentation

typedef struct iroute iroute_t
 

typedef struct oroute oroute_t
 


Function Documentation

void ipr_mtu ARGS (int port_nr, ipaddr_t dest, U16_t mtu, time_t timeout)   ) 
 

void ipr_destunrch ARGS (int port_nr, ipaddr_t dest, ipaddr_t subnetmask, time_t timeout)   ) 
 

void ipr_redirect ARGS (int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t old_gateway, ipaddr_t new_gateway, time_t timeout)   ) 
 

void ipr_gateway_down ARGS (int port_nr, ipaddr_t gateway, time_t timeout)   ) 
 

int ipr_add_oroute ARGS (int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t gateway, time_t timeout, int dist, int mtu, int static_route, i32_t preference, oroute_t **route_p)   ) 
 

void ipr_chk_itab ARGS (int port_nr, ipaddr_t addr, ipaddr_t mask)   ) 
 

int ipr_del_iroute ARGS (int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t gateway, int static_route)   ) 
 

int ipr_add_iroute ARGS (int port_nr, ipaddr_t dest, ipaddr_t subnetmask, ipaddr_t gateway, int dist, int mtu, int static_route, iroute_t **route_p)   ) 
 

int ipr_get_iroute ARGS (int ent_no, nwio_route_t *route_ent)   ) 
 

void ipr_init ARGS (void)   ) 
 

int oroute_frag ARGS (int port_nr, ipaddr_t dest, int ttl, size_t msgsize, ipaddr_t *nexthop)   ) 
 

iroute_t* iroute_frag ARGS (int port_nr, ipaddr_t dest)   ) 
 


Generated on Fri Apr 14 23:21:22 2006 for minix by  doxygen 1.4.6