IBR-DTNSuite  0.8
tools/src/DTNTun/tun.h
Go to the documentation of this file.
00001 #ifndef __TUN_H__
00002 #define __TUN_H__
00003 
00004 #include <stdio.h>
00005 #include <stdlib.h>
00006 #include <fcntl.h>
00007 #include <unistd.h>
00008 
00009 #include <string.h>
00010 
00011 
00012 #include <net/if.h>
00013 #include <linux/if_tun.h>
00014 
00015 #include <sys/ioctl.h>
00016 
00017 /* Forward decl */
00018 int tun_create(char *dev);
00019 
00020 int tun_conf_ipv4(char *ifname,  char *ip_from, char *ip_to);
00021 
00022 
00023 
00024 
00025 #endif // __TUN_H__