1 void rtinitheads(void);
2 void rtalloc(struct route
* ro
);
3 struct rtentry
* rtalloc1(struct sockaddr
* dst
, int report
);
4 void rtfree(struct rtentry
* rt
);
5 void rtredirect(struct sockaddr
* dst
, struct sockaddr
* gateway
,
6 struct sockaddr
* netmask
, int flags
,
7 struct sockaddr
* src
, struct rtentry
** rtp
);
8 int rtioctl(int req
, caddr_t data
);
9 struct ifaddr
* ifa_ifwithroute(int flags
, struct sockaddr
* dst
,
10 struct sockaddr
* gateway
);
11 int rtrequest(int req
, struct sockaddr
* dst
, struct sockaddr
* gateway
,
12 struct sockaddr
* netmask
, int flags
, struct rtentry
** ret_nrt
);
13 void rt_maskedcopy(struct sockaddr
* src
, struct sockaddr
* dst
,
14 struct sockaddr
* netmask
);
15 int rtinit(struct ifaddr
* ifa
, int cmd
, int flags
);