Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tuntap-unix-darwin.c File Reference
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <net/if_types.h>
#include <netinet/if_ether.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <ifaddrs.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 bits)
 
int tuntap_sys_set_descr (struct device *dev, const char *descr, size_t len)
 

Function Documentation

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_NOTICE.

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  bits 
)