X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Flinux%2Fdevice.c;h=1cb43077ade594f9749739d887660e02ed5c7605;hp=c82a820e1779625c72fbe29c8f0a7b82ea840c33;hb=ac066bb057dcb187bf91670793ba5e6ca456e052;hpb=82e383710980534d38bb9a8ef22f20677cd85861 diff --git a/src/linux/device.c b/src/linux/device.c index c82a820e..1cb43077 100644 --- a/src/linux/device.c +++ b/src/linux/device.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. - $Id: device.c,v 1.1.2.2 2001/10/27 12:13:17 guus Exp $ + $Id: device.c,v 1.1.2.3 2001/10/27 13:13:35 guus Exp $ */ #include "config.h" @@ -124,6 +124,12 @@ cp return 0; } +void close_device(void) +{ +cp + close(device_fd); +} + /* read, encrypt and send data that is available through the ethertap device @@ -196,3 +202,12 @@ cp cp return 0; } + +void dump_device_stats(void) +{ +cp + syslog(LOG_DEBUG, _("Statistics for %s %s:"), device_info, device_fname); + syslog(LOG_DEBUG, _(" total bytes in: %10d"), device_total_in); + syslog(LOG_DEBUG, _(" total bytes out: %10d"), device_total_out); +cp +}