aboutsummaryrefslogtreecommitdiff
path: root/tun.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-04-05 07:30:04 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-04-05 07:30:04 +0000
commit55ff44b4efeab6741bc10778c7990d1e7cfbe51c (patch)
treefbd56f0999860c7e425aa2db2039e49963c56230 /tun.c
parentI've recently worked on a better version of pkcs11-helper. I've also merged (diff)
downloadopenvpn-55ff44b4efeab6741bc10778c7990d1e7cfbe51c.tar.xz
svn merge -r 886:987 $SO/trunk/openvpn .
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@991 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'tun.c')
-rw-r--r--tun.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tun.c b/tun.c
index 26d7cef..971b2ce 100644
--- a/tun.c
+++ b/tun.c
@@ -720,7 +720,19 @@ do_ifconfig (struct tuntap *tt,
tun_mtu
);
else
- no_tap_ifconfig ();
+ /*
+ * NetBSD has distinct tun and tap devices
+ * so we don't need the "link0" extra parameter to specify we want to do
+ * tunneling at the ethernet level
+ */
+ openvpn_snprintf (command_line, sizeof (command_line),
+ IFCONFIG_PATH " %s %s netmask %s mtu %d broadcast %s",
+ actual,
+ ifconfig_local,
+ ifconfig_remote_netmask,
+ tun_mtu,
+ ifconfig_broadcast
+ );
msg (M_INFO, "%s", command_line);
system_check (command_line, es, S_FATAL, "NetBSD ifconfig failed");
tt->did_ifconfig = true;