1 | /* |
1 | /* |
2 | device-cygwin.C -- Stub for Cygwin environment |
2 | device-cygwin.C -- Stub for Cygwin environment |
3 | Copyright (C) 2003-2004 Marc Lehmann <ocg@goof.com> |
3 | Copyright (C) 2003-2005 Marc Lehmann <ocg@goof.com> |
4 | Copyright (C) 2002-2003 Ivo Timmermans <ivo@o2w.nl>, |
4 | Copyright (C) 2002-2003 Ivo Timmermans <ivo@o2w.nl>, |
5 | 2002-2003 Guus Sliepen <guus@sliepen.eu.org> |
5 | 2002-2003 Guus Sliepen <guus@sliepen.eu.org> |
6 | |
6 | |
|
|
7 | This file is part of GVPE. |
|
|
8 | |
7 | This program is free software; you can redistribute it and/or modify |
9 | GVPE is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by |
10 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation; either version 2 of the License, or |
11 | the Free Software Foundation; either version 2 of the License, or |
10 | (at your option) any later version. |
12 | (at your option) any later version. |
11 | |
13 | |
12 | This program is distributed in the hope that it will be useful, |
14 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. |
17 | GNU General Public License for more details. |
16 | |
18 | |
17 | You should have received a copy of the GNU General Public License |
19 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
20 | along with gvpe; if not, write to the Free Software |
19 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 | */ |
22 | */ |
21 | |
23 | |
22 | // unfortunately, there is be no way to set MAC addresses under windows, |
24 | // unfortunately, there is be no way to set MAC addresses under windows, |
23 | // and the default cipedrvr uses a different MAC address than we do, |
25 | // and the default cipedrvr uses a different MAC address than we do, |
24 | // so this module tries to fix mac addresses in packets and arp packets. |
26 | // so this module tries to fix mac addresses in packets and arp packets. |
… | |
… | |
120 | tap_device::info () |
122 | tap_device::info () |
121 | { |
123 | { |
122 | return _("cygwin cipe/openvpn tap device"); |
124 | return _("cygwin cipe/openvpn tap device"); |
123 | } |
125 | } |
124 | |
126 | |
|
|
127 | const char * |
|
|
128 | tap_device::if_up () |
|
|
129 | { |
|
|
130 | return ""; |
|
|
131 | } |
|
|
132 | |
125 | tap_device::tap_device () |
133 | tap_device::tap_device () |
126 | { |
134 | { |
127 | HKEY key, key2; |
135 | HKEY key, key2; |
128 | int i; |
136 | int i; |
129 | |
137 | |