X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fopenbsd%2Fdevice.c;h=92c3c03010c24114a9563e3116abe436098d86e8;hp=9519bb6e0dbffed44374de56a92f06bea038f0fc;hb=e8b11b1cca11f7f50542a7b34f4251f43447db0d;hpb=ef091d1ddb1f7ab5244db96841274dc769e85167 diff --git a/src/openbsd/device.c b/src/openbsd/device.c index 9519bb6e..92c3c030 100644 --- a/src/openbsd/device.c +++ b/src/openbsd/device.c @@ -1,7 +1,7 @@ /* device.c -- Interaction with OpenBSD tun device - Copyright (C) 2001-2003 Ivo Timmermans , - 2001-2003 Guus Sliepen + Copyright (C) 2001-2004 Ivo Timmermans , + 2001-2004 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: device.c,v 1.1.2.19 2003/08/08 11:45:37 guus Exp $ + $Id$ */ #include "system.h" @@ -30,16 +30,13 @@ #define DEFAULT_DEVICE "/dev/tun0" -#define DEVICE_TYPE_ETHERTAP 0 -#define DEVICE_TYPE_TUNTAP 1 - int device_fd = -1; char *device; char *iface; char *device_info; -int device_total_in = 0; -int device_total_out = 0; +static int device_total_in = 0; +static int device_total_out = 0; bool setup_device(void) {