summaryrefslogtreecommitdiff
path: root/src/tun.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tun.h')
-rw-r--r--src/tun.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tun.h b/src/tun.h
index 5f30aab..519c62b 100644
--- a/src/tun.h
+++ b/src/tun.h
@@ -51,10 +51,10 @@ struct tun_device_struct {
};
typedef struct tun_device_struct tun_device_t;
-void tun_init(tun_device_t** dev, const char* dev_name, const char* dev_type, const char* ifcfg_lp, const char* ifcfg_rnmp);
+int tun_init(tun_device_t* dev, const char* dev_name, const char* dev_type, const char* ifcfg_lp, const char* ifcfg_rnmp);
int tun_init_post(tun_device_t* dev);
void tun_do_ifconfig(tun_device_t* dev);
-void tun_close(tun_device_t** dev);
+void tun_close(tun_device_t* dev);
int tun_read(tun_device_t* dev, u_int8_t* buf, u_int32_t len);
int tun_write(tun_device_t* dev, u_int8_t* buf, u_int32_t len);