projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tiny bits of code beautifying
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
d89c7c6
..
ed00610
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.8
6 2000/11/30 23:18:1
9 zarq Exp $
+ $Id: net.c,v 1.35.4.8
7 2000/12/05 08:59:2
9 zarq Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-386,9
+386,9
@@
int setup_tap_fd(void)
const char *tapfname;
config_t const *cfg;
#ifdef HAVE_LINUX
const char *tapfname;
config_t const *cfg;
#ifdef HAVE_LINUX
-
#
ifdef HAVE_TUNTAP
+
#
ifdef HAVE_TUNTAP
struct ifreq ifr;
struct ifreq ifr;
-
#
endif
+
#
endif
#endif
cp
#endif
cp
@@
-397,11
+397,11
@@
cp
else
{
#ifdef HAVE_LINUX
else
{
#ifdef HAVE_LINUX
-
#
ifdef HAVE_TUNTAP
+
#
ifdef HAVE_TUNTAP
tapfname = "/dev/misc/net/tun";
tapfname = "/dev/misc/net/tun";
-
#
else
+
#
else
tapfname = "/dev/tap0";
tapfname = "/dev/tap0";
-
#
endif
+
#
endif
#endif
#ifdef HAVE_FREEBSD
tapfname = "/dev/tap0";
#endif
#ifdef HAVE_FREEBSD
tapfname = "/dev/tap0";