--- gvpe/src/device-linux.C 2003/10/16 02:41:21 1.5 +++ gvpe/src/device-linux.C 2004/01/29 18:55:10 1.8 @@ -1,6 +1,6 @@ /* device-linux.C -- Interaction with Linux tun/tap device - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003-2004 Marc Lehmann 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 @@ -45,6 +45,7 @@ #include "conf.h" #if TEST_ETHEREMU +# define IF_istun # include "ether_emu.C" #endif @@ -65,7 +66,7 @@ if (fd < 0) { slog (L_ERR, _("could not open device %s: %s"), device, strerror (errno)); - exit (1); + exit (EXIT_FAILURE); } memset (&ifr, 0, sizeof (ifr)); @@ -88,7 +89,7 @@ else { slog (L_CRIT, _("unable to configure tun/tap interface: %s"), strerror (errno)); - exit (1); + exit (EXIT_FAILURE); } if (ioctl (fd, TUNSETPERSIST, conf.ifpersist ? 1 : 0))