diff options
Diffstat (limited to 'lib/tun.h')
-rw-r--r-- | lib/tun.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -13,6 +13,7 @@ #ifndef _TUN_H #define _TUN_H +#include <stdbool.h> #include <net/if.h> #include "../lib/in46_addr.h" @@ -41,7 +42,7 @@ struct tun_t { void *priv; }; -extern int tun_new(struct tun_t **tun, const char *dev_name); +extern int tun_new(struct tun_t **tun, const char *dev_name, int fd0, int fd1u, bool use_kernel); extern int tun_free(struct tun_t *tun); extern int tun_decaps(struct tun_t *this); extern int tun_encaps(struct tun_t *tun, void *pack, unsigned len); |