--- gvpe/src/device.h 2003/10/14 03:22:09 1.6 +++ gvpe/src/device.h 2003/10/14 17:01:07 1.8 @@ -19,7 +19,7 @@ #ifndef VPE_DEVICE_H__ #define VPE_DEVICE_H__ -#define IFNAMESIZE 256 +#define IFNAMESIZE 256 // be conservative #include "gettext.h" @@ -78,10 +78,10 @@ u8 data[MAXSIZE - 12]; }; -struct tap_device { +struct tap_device_base { int fd; - // linux tuntap + // network interface name or identifier char ifrname[IFNAMESIZE + 1]; char *device; @@ -89,6 +89,9 @@ tap_device (); ~tap_device (); + //bool open (); + //void close (); + const char *interface () { return ifrname; } const char *info (); @@ -96,5 +99,7 @@ void send (tap_packet *pkt); }; +//extern tap_device *tap_device (); + #endif