1 | /* |
1 | /* |
2 | device-tincd.C -- include one of the tincd low level implementations. |
2 | device-tincd.C -- include one of the tincd low level implementations. |
3 | Copyright (C) 2003-2004 Marc Lehmann <pcg@goof.com> |
3 | Copyright (C) 2003-2005 Marc Lehmann <gvpe@schmorp.de> |
4 | |
4 | |
|
|
5 | This file is part of GVPE. |
|
|
6 | |
5 | This program is free software; you can redistribute it and/or modify |
7 | GVPE is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
8 | 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 |
9 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
10 | (at your option) any later version. |
9 | |
11 | |
10 | This program is distributed in the hope that it will be useful, |
12 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. |
15 | GNU General Public License for more details. |
14 | |
16 | |
15 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
18 | along with gvpe; if not, write to the Free Software |
17 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | */ |
20 | */ |
19 | |
21 | |
20 | #include <cstdio> |
22 | #include <cstdio> |
21 | #include <cstring> |
23 | #include <cstring> |
… | |
… | |
94 | |
96 | |
95 | #elif IF_freebsd |
97 | #elif IF_freebsd |
96 | # include "tincd/freebsd/device.c" |
98 | # include "tincd/freebsd/device.c" |
97 | |
99 | |
98 | #elif IF_netbsd |
100 | #elif IF_netbsd |
99 | #define IF_istun 1 |
101 | # define IF_istun 1 |
100 | # include "tincd/netbsd/device.c" |
102 | # include "tincd/netbsd/device.c" |
101 | |
103 | |
102 | #elif IF_openbsd |
104 | #elif IF_openbsd |
103 | #define IF_istun 1 |
105 | # define IF_istun 1 |
104 | # include "tincd/openbsd/device.c" |
106 | # include "tincd/openbsd/device.c" |
105 | |
107 | |
106 | #elif IF_solaris |
108 | #elif IF_solaris |
|
|
109 | # define IF_istun 1 |
107 | # include "tincd/solaris/device.c" |
110 | # include "tincd/solaris/device.c" |
108 | |
111 | |
109 | #elif IF_cygwin |
112 | #elif IF_cygwin |
110 | # include "tincd/cygwin/device.c" |
113 | # include "tincd/cygwin/device.c" |
111 | |
114 | |
112 | #elif IF_mingw |
115 | #elif IF_mingw |
113 | # include "tincd/mingw/device.c" |
116 | # include "tincd/mingw/device.c" |
114 | |
117 | |
115 | #elif IF_darwin |
118 | #elif IF_darwin |
116 | #define IF_istun 1 |
119 | # define IF_istun 1 |
117 | # include "tincd/darwin/device.c" |
120 | # include "tincd/darwin/device.c" |
118 | |
121 | |
119 | #elif IF_raw_socket |
122 | #elif IF_raw_socket |
120 | #define IF_istun 1 |
123 | # define IF_istun 1 |
121 | # include "tincd/raw_socket/device.c" |
124 | # include "tincd/raw_socket/device.c" |
122 | |
125 | |
123 | #else |
126 | #else |
124 | # error No interface implementation for your IFTYPE/IFSUBTYPE combination. |
127 | # error No interface implementation for your IFTYPE/IFSUBTYPE combination. |
125 | #endif |
128 | #endif |