X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fopenbsd%2Fdevice.c;h=92c3c03010c24114a9563e3116abe436098d86e8;hp=e7670300fe4b8d792b2808396b5bc2d99ab403de;hb=e8b11b1cca11f7f50542a7b34f4251f43447db0d;hpb=eefa28059ab989c915a7d95fb4ae728abd7ce713 diff --git a/src/openbsd/device.c b/src/openbsd/device.c index e7670300..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,10 +17,11 @@ 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.17 2003/07/22 20:55:21 guus Exp $ + $Id$ */ #include "system.h" +#include #include "conf.h" #include "logger.h" @@ -29,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) { @@ -106,7 +104,6 @@ bool read_packet(vpn_packet_t *packet) ifdebug(TRAFFIC) logger(LOG_DEBUG, _("Read packet of %d bytes from %s"), packet->len, device_info); - } return true; }