Teonet library
0.4.7
|
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <net/if_tun.h>
#include <net/if_types.h>
#include <netinet/if_ether.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "tuntap.h"
Functions | |
int | tuntap_sys_start (struct device *dev, int mode, int tun) |
void | tuntap_sys_destroy (struct device *dev) |
int | tuntap_sys_set_hwaddr (struct device *dev, struct ether_addr *eth_addr) |
int | tuntap_sys_set_ipv4 (struct device *dev, t_tun_in_addr *s4, uint32_t imask) |
int | tuntap_sys_set_ipv6 (struct device *dev, t_tun_in6_addr *s6, uint32_t imask) |
int | tuntap_sys_set_ifname (struct device *dev, const char *ifname, size_t len) |
int | tuntap_sys_set_descr (struct device *dev, const char *descr, size_t len) |
void tuntap_sys_destroy | ( | struct device * | dev | ) |
int tuntap_sys_set_descr | ( | struct device * | dev, |
const char * | descr, | ||
size_t | len | ||
) |
References tuntap_log, and TUNTAP_LOG_ERR.
int tuntap_sys_set_hwaddr | ( | struct device * | dev, |
struct ether_addr * | eth_addr | ||
) |
int tuntap_sys_set_ifname | ( | struct device * | dev, |
const char * | ifname, | ||
size_t | len | ||
) |
References tuntap_log, and TUNTAP_LOG_ERR.
int tuntap_sys_set_ipv4 | ( | struct device * | dev, |
t_tun_in_addr * | s4, | ||
uint32_t | imask | ||
) |
int tuntap_sys_set_ipv6 | ( | struct device * | dev, |
t_tun_in6_addr * | s6, | ||
uint32_t | imask | ||
) |
int tuntap_sys_start | ( | struct device * | dev, |
int | mode, | ||
int | tun | ||
) |