summaryrefslogtreecommitdiff
path: root/src/bsd/tun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-06-24 01:46:33 +0000
committerChristian Pointner <equinox@anytun.org>2009-06-24 01:46:33 +0000
commit9103e8e13f7dcfc0177d0202895185b442db8bc3 (patch)
treeb3e6a1d8e620f58896a8845b33bdbf6812eba0e2 /src/bsd/tun.c
parentbsd tun device now also uses uanytun_exec (diff)
fixed ifconfig calls for linux and bsd
fixed execve error handling
Diffstat (limited to 'src/bsd/tun.c')
-rw-r--r--src/bsd/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bsd/tun.c b/src/bsd/tun.c
index e2736ec..31ddd6c 100644
--- a/src/bsd/tun.c
+++ b/src/bsd/tun.c
@@ -335,7 +335,7 @@ void tun_do_ifconfig(tun_device_t* dev)
return;
}
- char* const argv[] = { dev->actual_name_, dev->net_addr_, "netmask", dev->net_mask_, "mtu", mtu_str, end, NULL };
+ char* const argv[] = { "/sbin/ifconfig", dev->actual_name_, dev->net_addr_, "netmask", dev->net_mask_, "mtu", mtu_str, end, NULL };
uanytun_exec("/sbin/ifconfig", argv, NULL);
free(mtu_str);