4 Copyright 1995 Philip Homburg
14 ipaddr_t ort_subnetmask
;
23 struct oroute
*ort_nextnw
;
24 struct oroute
*ort_nextgw
;
25 struct oroute
*ort_nextdist
;
28 #define ORTD_UNREACHABLE 512
38 ipaddr_t irt_subnetmask
;
45 #define IRTD_UNREACHABLE 512
51 #define IPR_UNRCH_TIMEOUT (60L * HZ)
52 #define IPR_TTL_TIMEOUT (60L * HZ)
53 #define IPR_REDIRECT_TIMEOUT (20 * 60L * HZ)
54 #define IPR_GW_DOWN_TIMEOUT (60L * HZ)
55 #define IPR_MTU_TIMEOUT (10*60L * HZ) /* RFC-1191 */
59 iroute_t
*iroute_frag
ARGS(( int port_nr
, ipaddr_t dest
));
60 int oroute_frag
ARGS(( int port_nr
, ipaddr_t dest
, int ttl
, size_t msgsize
,
62 void ipr_init
ARGS(( void ));
63 int ipr_get_iroute
ARGS(( int ent_no
, nwio_route_t
*route_ent
));
64 int ipr_add_iroute
ARGS(( int port_nr
, ipaddr_t dest
, ipaddr_t subnetmask
,
65 ipaddr_t gateway
, int dist
, int mtu
, int static_route
,
66 iroute_t
**route_p
));
67 int ipr_del_iroute
ARGS(( int port_nr
, ipaddr_t dest
, ipaddr_t subnetmask
,
68 ipaddr_t gateway
, int static_route
));
69 void ipr_chk_itab
ARGS(( int port_nr
, ipaddr_t addr
, ipaddr_t mask
));
70 int ipr_get_oroute
ARGS(( int ent_no
, nwio_route_t
*route_ent
));
71 int ipr_add_oroute
ARGS(( int port_nr
, ipaddr_t dest
, ipaddr_t subnetmask
,
72 ipaddr_t gateway
, time_t timeout
, int dist
, int mtu
, int static_route
,
73 i32_t preference
, oroute_t
**route_p
));
74 int ipr_del_oroute
ARGS(( int port_nr
, ipaddr_t dest
, ipaddr_t subnetmask
,
75 ipaddr_t gateway
, int static_route
));
76 void ipr_chk_otab
ARGS(( int port_nr
, ipaddr_t addr
, ipaddr_t mask
));
77 void ipr_gateway_down
ARGS(( int port_nr
, ipaddr_t gateway
, time_t timeout
));
78 void ipr_redirect
ARGS(( int port_nr
, ipaddr_t dest
, ipaddr_t subnetmask
,
79 ipaddr_t old_gateway
, ipaddr_t new_gateway
, time_t timeout
));
80 void ipr_destunrch
ARGS(( int port_nr
, ipaddr_t dest
, ipaddr_t subnetmask
,
82 void ipr_ttl_exc
ARGS(( int port_nr
, ipaddr_t dest
, ipaddr_t subnetmask
,
84 void ipr_mtu
ARGS(( int port_nr
, ipaddr_t dest
, u16_t mtu
, time_t timeout
));
89 * $PchId: ipr.h,v 1.8 2002/06/09 07:48:11 philip Exp $