Please wait until the page is fully downloaded and then press the "Expand" button or the blue line numbers.
0045017 ipaddr_t ort_gateway;
0045018 time_t ort_exp_tim;
0045019 time_t ort_timestamp;
0045020 int ort_flags;
0045021
0045022 struct oroute *ort_nextnw;
0045023 struct oroute *ort_nextgw;
0045024 struct oroute *ort_nextdist;
0045025 } oroute_t;
0045026
0045027 #define ORTD_UNREACHABLE 512
0045028
0045029 #define ORTF_EMPTY 0
0045030 #define ORTF_INUSE 1
0045031 #define ORTF_STATIC 2
0045032
0045033 typedef struct iroute
0045034 {
0045035 ipaddr_t irt_dest;
0045036 ipaddr_t irt_gateway;
0045037 ipaddr_t irt_subnetmask;
0045038 int irt_dist;
0045039 int irt_port;
0045040 int irt_flags;
0045041 } iroute_t;
0045042
0045043 #define IRTD_UNREACHABLE 512
0045044
0045045 #define IRTF_EMPTY 0
0045046 #define IRTF_INUSE 1
0045047 #define IRTF_STATIC 2
0045048
0045049 #define IPR_UNRCH_TIMEOUT (60L * HZ)
0045050 #define IPR_TTL_TIMEOUT (60L * HZ)
0045051 #define IPR_REDIRECT_TIMEOUT (20 * 60L * HZ)
0045052 #define IPR_GW_DOWN_TIMEOUT (60L * HZ)
0045053
0045054 /* Prototypes */
0045055
0045056 iroute_t *iroute_frag ARGS(( int port_nr, ipaddr_t dest ));
0045057 int oroute_frag ARGS(( int port_nr, ipaddr_t dest, int ttl,
0045058 ipaddr_t *nexthop ));
0045059 void ipr_init ARGS(( void ));
0045060 int ipr_get_iroute ARGS(( int ent_no, nwio_route_t *route_ent ));
0045061 int ipr_add_iroute ARGS(( int port_nr, ipaddr_t dest, ipaddr_t subnetmask,
0045062 ipaddr_t gateway, int dist, int static_route, iroute_t **route_p ));
0045063 int ipr_del_iroute ARGS(( int port_nr, ipaddr_t dest, ipaddr_t subnetmask,
0045064 ipaddr_t gateway, int dist, int static_route ));
0045065 int ipr_get_oroute ARGS(( int ent_no, nwio_route_t *route_ent ));
0045066 int ipr_add_oroute ARGS(( int port_nr, ipaddr_t dest, ipaddr_t subnetmask,
0045067 ipaddr_t gateway, time_t timeout, int dist, int static_route,
0045068 i32_t preference, oroute_t **route_p ));
0045069 void ipr_gateway_down ARGS(( int port_nr, ipaddr_t gateway, time_t timeout ));
0045070 void ipr_redirect ARGS(( int port_nr, ipaddr_t dest, ipaddr_t subnetmask,
0045071 ipaddr_t old_gateway, ipaddr_t new_gateway, time_t timeout ));
0045072 void ipr_destunrch ARGS(( int port_nr, ipaddr_t dest, ipaddr_t subnetmask,
0045073 time_t timeout ));
0045074 void ipr_ttl_exc ARGS(( int port_nr, ipaddr_t dest, ipaddr_t subnetmask,
0045075 time_t timeout ));
0045076
0045077 #endif /* IPR_H */
0045078
0045079 /*
0045080 * $PchId: ipr.h,v 1.4 1995/11/21 06:45:27 philip Exp $
0045081 */