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

tun-solaris.c File Reference

#include "config.h"
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <net/if.h>
#include <net/if_tun.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stropts.h>
#include <unistd.h>
#include "dnet.h"

Go to the source code of this file.

Classes

struct  tun

Defines

#define DEV_TUN   "/dev/tun"
#define DEV_IP   "/dev/ip"

Functions

tun_ttun_open (struct addr *src, struct addr *dst, int mtu)
const char * tun_name (tun_t *tun)
int tun_fileno (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)


Define Documentation

#define DEV_IP   "/dev/ip"
 

Definition at line 30 of file tun-solaris.c.

Referenced by tun_open().

#define DEV_TUN   "/dev/tun"
 

Definition at line 29 of file tun-solaris.c.

Referenced by tun_open().


Function Documentation

tun_t* tun_close tun_t tun  ) 
 

Definition at line 117 of file tun-solaris.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 90 of file tun-solaris.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 84 of file tun-solaris.c.

Referenced by __pyx_f_4dnet_3tun_4name___get__().

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

Definition at line 40 of file tun-solaris.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 106 of file tun-solaris.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 96 of file tun-solaris.c.

References tun::fd, and NULL.

Referenced by __pyx_f_4dnet_3tun_send().


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