diff options
author | Christian Pointner <equinox@anytun.org> | 2008-12-31 18:03:10 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-12-31 18:03:10 +0000 |
commit | 11bc606ed6685daa45a2dfe49d08ea2c36ceaf1f (patch) | |
tree | 2dae90bc1aa9f1ffded1e84406058a38ee731a45 /src/tun.h | |
parent | changed useless malloc for options_t (diff) |
fixed useless malloc for dev_t
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); |