--- gvpe/src/device.h 2003/10/14 16:59:34 1.7 +++ gvpe/src/device.h 2003/10/14 17:06:21 1.9 @@ -78,7 +78,7 @@ u8 data[MAXSIZE - 12]; }; -struct tap_device_base { +struct tap_device { int fd; // network interface name or identifier @@ -86,8 +86,11 @@ char *device; - bool open (); - void close (); + tap_device (); + ~tap_device (); + + //bool open (); + //void close (); const char *interface () { return ifrname; } const char *info (); @@ -96,9 +99,7 @@ void send (tap_packet *pkt); }; -struct tap_device; - -extern tap_device tap; +//extern tap_device *tap_device (); #endif