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

tun.h File Reference

Go to the source code of this file.

Typedefs

typedef tun tun_t

Functions

__BEGIN_DECLS tun_ttun_open (struct addr *src, struct addr *dst, int mtu)
int tun_fileno (tun_t *tun)
const char * tun_name (tun_t *tun)
ssize_t tun_send (tun_t *tun, const void *buf, size_t size)
ssize_t tun_recv (tun_t *tun, void *buf, size_t size)
tun_ttun_close (tun_t *tun)


Typedef Documentation

typedef struct tun tun_t
 

Definition at line 14 of file tun.h.


Function Documentation

tun_t* tun_close tun_t tun  ) 
 

Definition at line 135 of file tun-bsd.c.

References tun::fd, tun::if_fd, tun::ip_fd, and NULL.

Referenced by __pyx_f_4dnet_3tun___dealloc__(), __pyx_f_4dnet_3tun_close(), and tun_open().

int tun_fileno tun_t tun  ) 
 

Definition at line 93 of file tun-bsd.c.

References tun::fd.

Referenced by __pyx_f_4dnet_3tun_2fd___get__(), and __pyx_f_4dnet_3tun_fileno().

const char* tun_name tun_t tun  ) 
 

Definition at line 87 of file tun-bsd.c.

Referenced by __pyx_f_4dnet_3tun_4name___get__().

__BEGIN_DECLS tun_t* tun_open struct addr src,
struct addr dst,
int  mtu
 

Definition at line 32 of file tun-bsd.c.

References addr_ntoa(), DEV_IP, DEV_TUN, NULL, snprintf, and tun_close().

Referenced by __pyx_f_4dnet_3tun___init__().

ssize_t tun_recv tun_t tun,
void *  buf,
size_t  size
 

Definition at line 117 of file tun-bsd.c.

References tun::fd, and NULL.

Referenced by __pyx_f_4dnet_3tun_recv().

ssize_t tun_send tun_t tun,
const void *  buf,
size_t  size
 

Definition at line 99 of file tun-bsd.c.

References tun::fd, and NULL.

Referenced by __pyx_f_4dnet_3tun_send().


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