tools/src/DTNTun/tun.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <net/if.h>
#include <linux/if_tun.h>
#include <sys/ioctl.h>

Go to the source code of this file.

Functions

int tun_create (char *dev)
int tun_conf_ipv4 (char *ifname, char *ip_from, char *ip_to)

Function Documentation

int tun_conf_ipv4 ( char *  ifname,
char *  ip_from,
char *  ip_to 
)

Set tunnel addresses

Definition at line 34 of file tun.c.

Referenced by main().

int tun_create ( char *  dev  ) 

Definition at line 4 of file tun.c.

Referenced by main().

Generated on Mon Aug 23 08:12:57 2010 for IBR-DTNSuite by  doxygen 1.6.3