1 | /* |
1 | /* |
2 | device.h -- generic header for device.c |
2 | device.h -- generic header for device.c |
3 | Copyright (C) 2003 Marc Lehmann <pcg@goof.com> |
3 | Copyright (C) 2003-2004 Marc Lehmann <pcg@goof.com> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
98 | int fd; |
98 | int fd; |
99 | |
99 | |
100 | // network interface name or identifier |
100 | // network interface name or identifier |
101 | char ifrname[IFNAMESIZE + 1]; |
101 | char ifrname[IFNAMESIZE + 1]; |
102 | |
102 | |
|
|
103 | char *device; |
|
|
104 | |
103 | tap_device (); |
105 | tap_device (); |
104 | ~tap_device (); |
106 | ~tap_device (); |
105 | |
107 | |
106 | //bool open (); |
108 | //bool open (); |
107 | //void close (); |
109 | //void close (); |