]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add support of utun devices under Mac OS X
authorArne Schwabe <arne@rfc2549.org>
Fri, 21 Jun 2013 10:48:28 +0000 (12:48 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 3 Jul 2013 18:48:35 +0000 (20:48 +0200)
commitbdfd4ee4c0e3bcd46222b8425cea87a4c83bb37c
tree6141d1f0442d18a9573005984fd9c98405ea60a3
parentfd20880aaa3e085d6fb56f873a3de2d9ac2cf971
Add support of utun devices under Mac OS X

Mac OS X 10.7+ natively supports tun devices (called utun). The "standard"
utun.ko driver is sometimes problematic (e.g. VmWare Fusion 5 and tun.ko
do not work together).

When OpenVPN is compiled with utun support it will if no dev-node is given
first try to use utun and if that is not available will try the
traditional tun devices

v2: Fixed tap support, get device name via ioctl, add manage
v3.1: Fix compiling without if/utun.h, fix manage errors
v4/v5: Don't try open to dynamically open utun0 -255 when early utun
initialization fails, fix fallback to tun, give fatal error message when
utun fails but no tun fallback should be done
v6: add commit message change log, replace strstr with strncmp, move
v7: Throw error if a user does the strange combination of --dev tun
--dev-type tap and --dev-node utun

A lot good input on earlier patches by Jonathan K. Bullard
<jkbullard@gmail.com>

Parts of the patches are inspired from Peter Sagerson's
<psagers@ignorare.net> utun patch
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Tested-by: Jonathan K. Bullard <jkbullard@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1371811708-8528-1-git-send-email-arne@rfc2549.org>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7739
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit fbc04bedbcce02fc625357b7475ddbc7164cabbf)
configure.ac
doc/openvpn.8
src/openvpn/tun.c
src/openvpn/tun.h