diff options
Diffstat (limited to 'src/tun.h')
-rw-r--r-- | src/tun.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |