summaryrefslogtreecommitdiffstats
path: root/syshead.h
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2011-09-16 19:51:09 +0200
committerDavid Sommerseth <davids@redhat.com>2011-09-21 15:21:25 +0200
commit8ca19c014c149cf69257798afa6c75d1ff8f11a7 (patch)
tree6836b292510e3a96c48773e92a93c72079e41579 /syshead.h
parentc02a84051297d97ba5955b93cdf479393b1dc1f8 (diff)
downloadopenvpn-8ca19c014c149cf69257798afa6c75d1ff8f11a7.tar.gz
openvpn-8ca19c014c149cf69257798afa6c75d1ff8f11a7.tar.xz
openvpn-8ca19c014c149cf69257798afa6c75d1ff8f11a7.zip
Platform cleanup for NetBSD
make TAP devices work (need to go via multiplex device /dev/tap) cleanup TUN devices at program end ("ifconfig tunX destroy") correctly setup TUN devices for "topology subnet" don't try to put TAP devices into TUNSIFHEAD mode (get rid of error message) Tested on NetBSD 5.1_STABLE / Sparc64 Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'syshead.h')
-rw-r--r--syshead.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/syshead.h b/syshead.h
index 66a2538..bb8e180 100644
--- a/syshead.h
+++ b/syshead.h
@@ -213,6 +213,10 @@
#include <net/if.h>
#endif
+#ifdef TARGET_NETBSD
+#include <net/if_tap.h>
+#endif
+
#ifdef TARGET_LINUX
#if defined(HAVE_NETINET_IF_ETHER_H)