projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac9a3f
)
Fix default TAP device on Darwin.
author
Etienne Dechamps
<etienne@edechamps.fr>
Sun, 21 Sep 2014 10:14:19 +0000
(11:14 +0100)
committer
Etienne Dechamps
<etienne@edechamps.fr>
Sun, 21 Sep 2014 10:14:19 +0000
(11:14 +0100)
On Darwin (tuntapx), the first TAP device is /dev/tap0, not /dev/tun0.
src/bsd/device.c
patch
|
blob
|
history
diff --git
a/src/bsd/device.c
b/src/bsd/device.c
index 49508bc53432411d847ab96453b162411cad00f0..0e795dd06e31b22ba0a9bcca03f628f45aadc85b 100644
(file)
--- a/
src/bsd/device.c
+++ b/
src/bsd/device.c
@@
-35,7
+35,7
@@
#endif
#define DEFAULT_TUN_DEVICE "/dev/tun0"
-#if defined(HAVE_FREEBSD) || defined(HAVE_NETBSD)
+#if defined(HAVE_
DARWIN) || defined(HAVE_
FREEBSD) || defined(HAVE_NETBSD)
#define DEFAULT_TAP_DEVICE "/dev/tap0"
#else
#define DEFAULT_TAP_DEVICE "/dev/tun0"