summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-03 23:56:14 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-03 23:56:14 +0000
commitd399c8468aedc975d52632624786681a3a7ceacc (patch)
tree9ecd5d78a56ccef3e18a001685b88c0447da09d2 /src/uanytun.c
parentdroping privileges without chroot is now possible (diff)
new ifconfig syntax (only command line parser yet)
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index 48cc020..c80ca8b 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -358,7 +358,7 @@ int main(int argc, char* argv[])
#endif
tun_device_t dev;
- ret = tun_init(&dev, opt.dev_name_, opt.dev_type_, opt.ifconfig_param_local_, opt.ifconfig_param_remote_netmask_);
+ ret = tun_init(&dev, opt.dev_name_, opt.dev_type_, opt.ifconfig_param_.net_addr_, opt.ifconfig_param_.prefix_length_);
if(ret) {
log_printf(ERR, "error on tun_init, exitting");
options_clear(&opt);