aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tun.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tun.h')
-rw-r--r--lib/tun.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tun.h b/lib/tun.h
index e41ee69..5ca2ec6 100644
--- a/lib/tun.h
+++ b/lib/tun.h
@@ -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);