#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_t * | tun_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_t * | tun_close (tun_t *tun) |
|
|
Definition at line 30 of file tun-solaris.c. Referenced by tun_open(). |
|
|
Definition at line 29 of file tun-solaris.c. Referenced by tun_open(). |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 84 of file tun-solaris.c. Referenced by __pyx_f_4dnet_3tun_4name___get__(). |
|
||||||||||||||||
|
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__(). |
|
||||||||||||||||
|
Definition at line 106 of file tun-solaris.c. Referenced by __pyx_f_4dnet_3tun_recv(). |
|
||||||||||||||||
|
Definition at line 96 of file tun-solaris.c. Referenced by __pyx_f_4dnet_3tun_send(). |
1.4.2