4 * Kernel route table operations.
6 * Copyright (c) 2000 Dug Song <dugsong@monkey.org>
8 * $Id: route.h,v 1.6 2002/02/04 04:02:22 dugsong Exp $
18 struct addr route_dst
; /* destination address */
19 struct addr route_gw
; /* gateway address */
22 typedef struct route_handle route_t
;
24 typedef int (*route_handler
)(const struct route_entry
*entry
, void *arg
);
27 route_t
*route_open(void);
28 int route_add(route_t
*r
, const struct route_entry
*entry
);
29 int route_delete(route_t
*r
, const struct route_entry
*entry
);
30 int route_get(route_t
*r
, struct route_entry
*entry
);
31 int route_loop(route_t
*r
, route_handler callback
, void *arg
);
32 route_t
*route_close(route_t
*r
);
35 #endif /* DNET_ROUTE_H */