From: Guus Sliepen Date: Mon, 22 Dec 2014 15:28:41 +0000 (+0100) Subject: Automatically choose a tap device on Mac OS X when using switch Mode. X-Git-Tag: release-1.0.25~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=29a95c30e9fc2533227250a0f669d165316b72cf;p=oweals%2Ftinc.git Automatically choose a tap device on Mac OS X when using switch Mode. --- diff --git a/src/bsd/device.c b/src/bsd/device.c index f584355..3e9cfb2 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -1,7 +1,7 @@ /* device.c -- Interaction BSD tun/tap device Copyright (C) 2001-2005 Ivo Timmermans, - 2001-2012 Guus Sliepen + 2001-2014 Guus Sliepen 2009 Grzegorz Dymarek This program is free software; you can redistribute it and/or modify @@ -34,7 +34,7 @@ #endif #define DEFAULT_TUN_DEVICE "/dev/tun0" -#if defined(HAVE_FREEBSD) || defined(HAVE_NETBSD) +#if defined(HAVE_FREEBSD) || defined(HAVE_NETBSD) || defined(HAVE_DARWIN) #define DEFAULT_TAP_DEVICE "/dev/tap0" #else #define DEFAULT_TAP_DEVICE "/dev/tun0"