ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/device.h
(Generate patch)

Comparing gvpe/src/device.h (file contents):
Revision 1.7 by pcg, Tue Oct 14 16:59:34 2003 UTC vs.
Revision 1.9 by pcg, Tue Oct 14 17:06:21 2003 UTC

76 mac dst; 76 mac dst;
77 mac src; 77 mac src;
78 u8 data[MAXSIZE - 12]; 78 u8 data[MAXSIZE - 12];
79}; 79};
80 80
81struct tap_device_base { 81struct tap_device {
82 int fd; 82 int fd;
83 83
84 // network interface name or identifier 84 // network interface name or identifier
85 char ifrname[IFNAMESIZE + 1]; 85 char ifrname[IFNAMESIZE + 1];
86 86
87 char *device; 87 char *device;
88 88
89 tap_device ();
90 ~tap_device ();
91
89 bool open (); 92 //bool open ();
90 void close (); 93 //void close ();
91 94
92 const char *interface () { return ifrname; } 95 const char *interface () { return ifrname; }
93 const char *info (); 96 const char *info ();
94 97
95 tap_packet *recv (); 98 tap_packet *recv ();
96 void send (tap_packet *pkt); 99 void send (tap_packet *pkt);
97}; 100};
98 101
99struct tap_device;
100
101extern tap_device tap; 102//extern tap_device *tap_device ();
102 103
103#endif 104#endif
104 105

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines