Go to the source code of this file.
Typedefs | |
typedef route_handle | route_t |
typedef int(* | route_handler )(const struct route_entry *entry, void *arg) |
Functions | |
__BEGIN_DECLS route_t * | route_open (void) |
int | route_add (route_t *r, const struct route_entry *entry) |
int | route_delete (route_t *r, const struct route_entry *entry) |
int | route_get (route_t *r, struct route_entry *entry) |
int | route_loop (route_t *r, route_handler callback, void *arg) |
route_t * | route_close (route_t *r) |
|
|
|
|
|
Definition at line 179 of file route-bsd.c. References addr::addr_bits, addr_btom(), addr_net(), addr::addr_type, ADDR_TYPE_IP, CreateIpForwardEntry(), GetBestInterface(), IP_ADDR_LEN, memset, route_entry::route_dst, and route_entry::route_gw. Referenced by __pyx_f_4dnet_5route_add(), route_main(), and tun_open(). |
|
Definition at line 496 of file route-bsd.c. References NULL. Referenced by __pyx_f_4dnet_5route___dealloc__(), ip_close(), route_main(), route_open(), START_TEST(), and tun_open(). |
|
Definition at line 192 of file route-bsd.c. References addr::addr_bits, addr_btom(), addr::addr_type, ADDR_TYPE_IP, DeleteIpForwardEntry(), DWORD, errno, GetBestRoute(), IP_ADDR_ANY, IP_ADDR_LEN, and route_entry::route_dst. Referenced by __pyx_f_4dnet_5route_delete(), and route_main(). |
|
Definition at line 208 of file route-bsd.c. References addr::addr_bits, addr_btom(), addr::addr_type, ADDR_TYPE_IP, DWORD, errno, GetBestRoute(), IP_ADDR_ANY, IP_ADDR_BITS, IP_ADDR_LEN, IP_ADDR_LOOPBACK, IP_CLASSA_NET, IP_LOCAL_GROUP, route_entry::route_dst, and route_entry::route_gw. Referenced by __pyx_f_4dnet_5route_get(), ip_send(), route_delete(), and route_main(). |
|
Definition at line 488 of file route-bsd.c. References addr::addr_bits, addr_mtob(), addr::addr_type, ADDR_TYPE_IP, FALSE, GetIpForwardTable(), IP_ADDR_BITS, IP_ADDR_LEN, route_handle::ipftable, route_entry::route_dst, and route_entry::route_gw. Referenced by __pyx_f_4dnet_5route_loop(), and route_main(). |
|
Definition at line 158 of file route-bsd.c. Referenced by __pyx_f_4dnet_5route___init__(), ip_open(), route_main(), START_TEST(), and tun_open(). |