summaryrefslogtreecommitdiff
path: root/src/tun.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-31 18:03:10 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-31 18:03:10 +0000
commit11bc606ed6685daa45a2dfe49d08ea2c36ceaf1f (patch)
tree2dae90bc1aa9f1ffded1e84406058a38ee731a45 /src/tun.h
parentchanged useless malloc for options_t (diff)
fixed useless malloc for dev_t
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);