etc/services - sync with NetBSD-8
[minix.git] / minix / net / lwip / route.h
blob5573ba478808d18b13e4d3643d7a9b19edfd01f0
1 #ifndef MINIX_NET_LWIP_ROUTE_H
2 #define MINIX_NET_LWIP_ROUTE_H
4 #include <net/route.h>
6 struct route_entry;
7 struct rtsock_request;
9 void route_init(void);
10 int route_add(const ip_addr_t * addr, unsigned int prefix,
11 const ip_addr_t * gateway, struct ifdev * ifdev, unsigned int flags,
12 const struct rtsock_request * rtr);
13 int route_can_add(const ip_addr_t * addr, unsigned int prefix, int is_host);
14 struct route_entry *route_find(const ip_addr_t * addr, unsigned int prefix,
15 int is_host);
16 struct route_entry *route_lookup(const ip_addr_t * addr);
17 void route_delete(struct route_entry * route,
18 const struct rtsock_request * rtr);
19 void route_clear(struct ifdev * ifdev);
20 int route_process(unsigned int type, const struct sockaddr * dst,
21 const struct sockaddr * mask, const struct sockaddr * gateway,
22 const struct sockaddr * ifp, const struct sockaddr * ifa,
23 unsigned int flags, unsigned long inits,
24 const struct rt_metrics * rmx, const struct rtsock_request * rtr);
25 void route_get(const struct route_entry * route, union sockaddr_any * addr,
26 union sockaddr_any * mask, union sockaddr_any * gateway,
27 union sockaddr_any * ifp, union sockaddr_any * ifa,
28 struct ifdev ** ifdev, unsigned int * flags, unsigned int * use);
29 unsigned int route_get_flags(const struct route_entry * route);
30 struct ifdev *route_get_ifdev(const struct route_entry * route);
31 int route_is_ipv6(const struct route_entry * route);
32 struct route_entry *route_enum_v4(struct route_entry * last);
33 struct route_entry *route_enum_v6(struct route_entry * last);
34 int route_output_v4(struct ifdev * ifdev, const ip4_addr_t * ipaddr,
35 err_t * err);
36 int route_output_v6(struct ifdev * ifdev, const ip6_addr_t * ipaddr,
37 err_t * err);
39 #endif /* !MINIX_NET_LWIP_ROUTE_H */