aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/tun.h
blob: ebd92199a0b59df74eafd7399e3f9fed7701c2ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#ifndef _GNTUN_TUN_H_
#define _GNTUN_TUN_H_

/**
 * Creates a tun-interface called dev;
 * if *dev == 0, uses the name supplied by the kernel
 * returns the fd to the tun or -1
 */
extern int init_tun(char *dev);

#endif