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-2008 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 it |
8 | it under the terms of the GNU General Public License as published by |
10 | under the terms of the GNU General Public License as published by the |
9 | the Free Software Foundation; either version 2 of the License, or |
11 | Free Software Foundation; either version 3 of the License, or (at your |
10 | (at your option) any later version. |
12 | 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, but |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | 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 GNU General |
15 | GNU General Public License for more details. |
17 | 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 along |
18 | along with this program; if not, write to the Free Software |
20 | with this program; if not, see <http://www.gnu.org/licenses/>. |
19 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | |
|
|
22 | Additional permission under GNU GPL version 3 section 7 |
|
|
23 | |
|
|
24 | If you modify this Program, or any covered work, by linking or |
|
|
25 | combining it with the OpenSSL project's OpenSSL library (or a modified |
|
|
26 | version of that library), containing parts covered by the terms of the |
|
|
27 | OpenSSL or SSLeay licenses, the licensors of this Program grant you |
|
|
28 | additional permission to convey the resulting work. Corresponding |
|
|
29 | Source for a non-source form of such a combination shall include the |
|
|
30 | source code for the parts of OpenSSL used as well as that of the |
|
|
31 | covered work. |
20 | */ |
32 | */ |
21 | |
33 | |
22 | // unfortunately, there is be no way to set MAC addresses under windows, |
34 | // 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, |
35 | // 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. |
36 | // so this module tries to fix mac addresses in packets and arp packets. |
… | |
… | |
120 | tap_device::info () |
132 | tap_device::info () |
121 | { |
133 | { |
122 | return _("cygwin cipe/openvpn tap device"); |
134 | return _("cygwin cipe/openvpn tap device"); |
123 | } |
135 | } |
124 | |
136 | |
|
|
137 | const char * |
|
|
138 | tap_device::if_up () |
|
|
139 | { |
|
|
140 | return ""; |
|
|
141 | } |
|
|
142 | |
125 | tap_device::tap_device () |
143 | tap_device::tap_device () |
126 | { |
144 | { |
127 | HKEY key, key2; |
145 | HKEY key, key2; |
128 | int i; |
146 | int i; |
129 | |
147 | |