--- gvpe/src/device-linux.C 2003/03/08 10:48:41 1.2 +++ gvpe/src/device-linux.C 2003/10/14 03:22:09 1.3 @@ -30,8 +30,10 @@ #include #include +#include + #ifdef LINUX_IF_TUN_H -#include LINUX_IF_TUN_H +# include LINUX_IF_TUN_H #else #include #endif @@ -41,6 +43,12 @@ #include "conf.h" +const char * +tap_device::info () +{ + return _("Linux tun/tap device"); +} + tap_device::tap_device () { struct ifreq ifr; @@ -94,9 +102,9 @@ if (pkt->len <= 0) { + delete pkt; slog (L_ERR, _("error while reading from %s %s: %s"), info (), DEFAULT_DEVICE, strerror (errno)); - free (pkt); return 0; }