Teonet library
0.4.7
|
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "tuntap.h"
Functions | |
struct device * | tuntap_init (void) |
void | tuntap_destroy (struct device *dev) |
char * | tuntap_get_ifname (struct device *dev) |
int | tuntap_version (void) |
int | tuntap_set_ip (struct device *dev, const char *addr, int netmask) |
void tuntap_destroy | ( | struct device * | dev | ) |
References tuntap_release(), and tuntap_sys_destroy().
Referenced by main().
char* tuntap_get_ifname | ( | struct device * | dev | ) |
References device::if_name.
struct device* tuntap_init | ( | void | ) |
References device::ctrl_sock, device::flags, device::hwaddr, device::if_name, malloc(), device::tun_fd, TUNFD_INVALID_VALUE, tuntap_log, and tuntap_log_default().
Referenced by main().
int tuntap_set_ip | ( | struct device * | dev, |
const char * | addr, | ||
int | netmask | ||
) |
References device::tun_fd, TUNFD_INVALID_VALUE, tuntap_log, TUNTAP_LOG_ERR, TUNTAP_LOG_NOTICE, tuntap_sys_set_ipv4(), and tuntap_sys_set_ipv6().
Referenced by main().
int tuntap_version | ( | void | ) |
References TUNTAP_VERSION.