--- gvpe/src/device.h 2003/04/08 02:00:54 1.5 +++ gvpe/src/device.h 2003/10/14 17:06:21 1.9 @@ -19,7 +19,7 @@ #ifndef VPE_DEVICE_H__ #define VPE_DEVICE_H__ -#include +#define IFNAMESIZE 256 // be conservative #include "gettext.h" @@ -81,20 +81,25 @@ struct tap_device { int fd; - // linux tuntap - char ifrname[IFNAMSIZ + 1]; + // network interface name or identifier + char ifrname[IFNAMESIZE + 1]; char *device; tap_device (); ~tap_device (); + //bool open (); + //void close (); + const char *interface () { return ifrname; } - const char *info () { return _("Linux tun/tap device"); } + const char *info (); tap_packet *recv (); void send (tap_packet *pkt); }; +//extern tap_device *tap_device (); + #endif