Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

route.h File Reference

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_troute_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_troute_close (route_t *r)


Typedef Documentation

typedef int(* route_handler)(const struct route_entry *entry, void *arg)
 

Definition at line 24 of file route.h.

typedef struct route_handle route_t
 

Definition at line 22 of file route.h.


Function Documentation

int route_add route_t r,
const struct route_entry entry
 

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().

route_t* route_close route_t r  ) 
 

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().

int route_delete route_t r,
const struct route_entry entry
 

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().

int route_get route_t r,
struct route_entry entry
 

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().

int route_loop route_t r,
route_handler  callback,
void *  arg
 

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().

__BEGIN_DECLS route_t* route_open void   ) 
 

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().


Generated on Sun May 14 14:51:21 2006 by  doxygen 1.4.2