Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tuntap.c File Reference
#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 devicetuntap_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)
 

Function Documentation

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.

int tuntap_set_ip ( struct device dev,
const char *  addr,
int  netmask 
)
int tuntap_version ( void  )

References TUNTAP_VERSION.