X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fcygwin%2Fdevice.c;h=ca8c5f351200a1a2685efcbf2c3a88f80960c1b8;hp=131a786b1826aecce709ff47ac759cd62dd6869c;hb=ae50b0077e27c4c4d81a98da46c66865ffa069be;hpb=714fb32d0377ed9f5643ed8f0bd914843d12266b diff --git a/src/cygwin/device.c b/src/cygwin/device.c index 131a786b..ca8c5f35 100644 --- a/src/cygwin/device.c +++ b/src/cygwin/device.c @@ -1,5 +1,5 @@ /* - device.c -- Interaction with CIPE driver in a Cygwin environment + device.c -- Interaction with Windows tap driver in a Cygwin environment Copyright (C) 2002-2003 Ivo Timmermans , 2002-2003 Guus Sliepen @@ -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.11 2003/07/28 21:54:03 guus Exp $ + $Id: device.c,v 1.1.2.12 2003/07/29 11:06:23 guus Exp $ */ #include "system.h" @@ -156,7 +156,7 @@ bool setup_device(void) handle = CreateFile(tapname, GENERIC_WRITE, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM , 0); if(handle == INVALID_HANDLE_VALUE) { - logger(LOG_ERR, _("Could not open CIPE tap device for writing!")); + logger(LOG_ERR, _("Could not open Windows tap device for writing!")); return false; } @@ -192,7 +192,7 @@ bool setup_device(void) handle = CreateFile(tapname, GENERIC_READ, FILE_SHARE_WRITE, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM , 0); if(handle == INVALID_HANDLE_VALUE) { - logger(LOG_ERR, _("Could not open CIPE tap device for reading!")); + logger(LOG_ERR, _("Could not open Windows tap device for reading!")); buf[0] = 0; write(sp[1], buf, 1); exit(1); @@ -215,7 +215,7 @@ bool setup_device(void) read(device_fd, &gelukt, 1); if(gelukt != 1) { - logger(LOG_DEBUG, "Tap reader failed!"); + logger(LOG_DEBUG, _("Tap reader failed!")); return false; } @@ -272,7 +272,7 @@ bool write_packet(vpn_packet_t *packet) packet->len, device_info); if(!WriteFile (handle, packet->data, packet->len, &lenout, NULL)) { - logger(LOG_ERR, "Error while writing to %s %s", device_info, device); + logger(LOG_ERR, _("Error while writing to %s %s"), device_info, device); return false; }