1 | /* $Id: slirp_config.h 28449 2010-04-19 09:52:59Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * NAT - compile-time configuration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2010 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | * additional information or have any questions.
|
---|
20 | */
|
---|
21 |
|
---|
22 | /*
|
---|
23 | * User definable configuration options
|
---|
24 | */
|
---|
25 |
|
---|
26 | /* Undefine if you don't want talk emulation */
|
---|
27 | #undef EMULATE_TALK
|
---|
28 |
|
---|
29 | /* Define if you want the connection to be probed */
|
---|
30 | /* XXX Not working yet, so ignore this for now */
|
---|
31 | #undef PROBE_CONN
|
---|
32 |
|
---|
33 | /* Define to 1 if you want KEEPALIVE timers */
|
---|
34 | #define DO_KEEPALIVE 0
|
---|
35 |
|
---|
36 | /* Define to MAX interfaces you expect to use at once */
|
---|
37 | /* MAX_INTERFACES determines the max. TOTAL number of interfaces (SLIP and PPP) */
|
---|
38 | /* MAX_PPP_INTERFACES determines max. number of PPP interfaces */
|
---|
39 | #define MAX_INTERFACES 1
|
---|
40 | #define MAX_PPP_INTERFACES 1
|
---|
41 |
|
---|
42 | /* Define if you want slirp's socket in /tmp */
|
---|
43 | /* XXXXXX Do this in ./configure */
|
---|
44 | #undef USE_TMPSOCKET
|
---|
45 |
|
---|
46 | /* Define if you want slirp to use cfsetXspeed() on the terminal */
|
---|
47 | #undef DO_CFSETSPEED
|
---|
48 |
|
---|
49 | /* Define this if you want slirp to write to the tty as fast as it can */
|
---|
50 | /* This should only be set if you are using load-balancing, slirp does a */
|
---|
51 | /* pretty good job on single modems already, and seting this will make */
|
---|
52 | /* interactive sessions less responsive */
|
---|
53 | /* XXXXX Talk about having fast modem as unit 0 */
|
---|
54 | #undef FULL_BOLT
|
---|
55 |
|
---|
56 | /*
|
---|
57 | * Define if you want slirp to use less CPU
|
---|
58 | * You will notice a small lag in interactive sessions, but it's not that bad
|
---|
59 | * Things like Netscape/ftp/etc. are completely unaffected
|
---|
60 | * This is mainly for sysadmins who have many slirp users
|
---|
61 | */
|
---|
62 | #undef USE_LOWCPU
|
---|
63 |
|
---|
64 | /*********************************************************/
|
---|
65 | /*
|
---|
66 | * Autoconf defined configuration options
|
---|
67 | * You shouldn't need to touch any of these
|
---|
68 | */
|
---|
69 |
|
---|
70 | #ifdef _MSC_VER
|
---|
71 | #undef HAVE_UNISTD_H
|
---|
72 | #else
|
---|
73 | /* Define if you have unistd.h */
|
---|
74 | #define HAVE_UNISTD_H
|
---|
75 | #endif
|
---|
76 |
|
---|
77 | /* Define if you have stdlib.h */
|
---|
78 | #define HAVE_STDLIB_H
|
---|
79 |
|
---|
80 | /* Define if you have sys/ioctl.h */
|
---|
81 | #undef HAVE_SYS_IOCTL_H
|
---|
82 | #ifndef RT_OS_WINDOWS
|
---|
83 | # define HAVE_SYS_IOCTL_H
|
---|
84 | #endif
|
---|
85 |
|
---|
86 | /* Define if you have sys/filio.h */
|
---|
87 | #undef HAVE_SYS_FILIO_H
|
---|
88 | #ifdef __APPLE__
|
---|
89 | #define HAVE_SYS_FILIO_H
|
---|
90 | #endif
|
---|
91 |
|
---|
92 | /* Define according to how time.h should be included */
|
---|
93 | #define TIME_WITH_SYS_TIME 0
|
---|
94 | #undef HAVE_SYS_TIME_H
|
---|
95 |
|
---|
96 | /* Define if you have sys/bitypes.h */
|
---|
97 | #undef HAVE_SYS_BITYPES_H
|
---|
98 |
|
---|
99 | /* Define if the machine is big endian */
|
---|
100 | /*#undef WORDS_BIGENDIAN */
|
---|
101 |
|
---|
102 | /* Define if you have readv */
|
---|
103 | #undef HAVE_READV
|
---|
104 |
|
---|
105 | /* Define if iovec needs to be declared */
|
---|
106 | #undef DECLARE_IOVEC
|
---|
107 | #ifdef RT_OS_WINDOWS
|
---|
108 | # define DECLARE_IOVEC
|
---|
109 | #endif
|
---|
110 |
|
---|
111 | /* Define if you have a POSIX.1 sys/wait.h */
|
---|
112 | #undef HAVE_SYS_WAIT_H
|
---|
113 |
|
---|
114 | /* Define if you have sys/select.h */
|
---|
115 | #undef HAVE_SYS_SELECT_H
|
---|
116 | #ifndef RT_OS_WINDOWS
|
---|
117 | # define HAVE_SYS_SELECT_H
|
---|
118 | #endif
|
---|
119 |
|
---|
120 | /* Define if you have strings.h */
|
---|
121 | #define HAVE_STRING_H
|
---|
122 |
|
---|
123 | /* Define if you have arpa/inet.h */
|
---|
124 | #undef HAVE_ARPA_INET_H
|
---|
125 | #ifndef RT_OS_WINDOWS
|
---|
126 | # define HAVE_ARPA_INET_H
|
---|
127 | #endif
|
---|
128 |
|
---|
129 | /* Define if you have sys/signal.h */
|
---|
130 | #undef HAVE_SYS_SIGNAL_H
|
---|
131 |
|
---|
132 | /* Define if you have sys/stropts.h */
|
---|
133 | #undef HAVE_SYS_STROPTS_H
|
---|
134 |
|
---|
135 | /* Define to whatever your compiler thinks inline should be */
|
---|
136 | #if defined(_MSC_VER) && !defined(__cplusplus)
|
---|
137 | # define inline _inline
|
---|
138 | #else
|
---|
139 | # define inline inline
|
---|
140 | #endif
|
---|
141 |
|
---|
142 | /* Define to whatever your compiler thinks const should be */
|
---|
143 | #define const const
|
---|
144 |
|
---|
145 | /* Define if you don't have u_int32_t etc. typedef'd */
|
---|
146 | #undef NEED_TYPEDEFS
|
---|
147 | #ifdef __sun__
|
---|
148 | #define NEED_TYPEDEFS
|
---|
149 | #endif
|
---|
150 |
|
---|
151 | /* Define to sizeof(char) */
|
---|
152 | #define SIZEOF_CHAR 1
|
---|
153 |
|
---|
154 | /* Define to sizeof(short) */
|
---|
155 | #define SIZEOF_SHORT 2
|
---|
156 |
|
---|
157 | /* Define to sizeof(int) */
|
---|
158 | #define SIZEOF_INT 4
|
---|
159 |
|
---|
160 | /* Define to sizeof(char *) */
|
---|
161 | #define HOST_LONG_BITS ARCH_BITS
|
---|
162 | #define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)
|
---|
163 |
|
---|
164 | /* Define if you have random() */
|
---|
165 | #undef HAVE_RANDOM
|
---|
166 |
|
---|
167 | /* Define if you have srandom() */
|
---|
168 | #undef HAVE_SRANDOM
|
---|
169 |
|
---|
170 | /* Define if you have inet_aton */
|
---|
171 | #undef HAVE_INET_ATON
|
---|
172 | #ifndef RT_OS_WINDOWS
|
---|
173 | # define HAVE_INET_ATON
|
---|
174 | #endif
|
---|
175 |
|
---|
176 | /* Define if you have setenv */
|
---|
177 | #undef HAVE_SETENV
|
---|
178 |
|
---|
179 | /* Define if you have index() */
|
---|
180 | #undef HAVE_INDEX
|
---|
181 |
|
---|
182 | /* Define if you have bcmp() */
|
---|
183 | #undef HAVE_BCMP
|
---|
184 |
|
---|
185 | /* Define if you have drand48 */
|
---|
186 | #undef HAVE_DRAND48
|
---|
187 |
|
---|
188 | /* Define if you have memmove */
|
---|
189 | #define HAVE_MEMMOVE
|
---|
190 |
|
---|
191 | /* Define if you have gethostid */
|
---|
192 | #undef HAVE_GETHOSTID
|
---|
193 | #ifdef RT_OS_OS2
|
---|
194 | # define HAVE_GETHOSTID
|
---|
195 | #endif
|
---|
196 |
|
---|
197 | /* Define if you DON'T have unix-domain sockets */
|
---|
198 | #undef NO_UNIX_SOCKETS
|
---|
199 | #ifdef RT_OS_WINDOWS
|
---|
200 | # define NO_UNIX_SOCKETS
|
---|
201 | #endif
|
---|
202 |
|
---|
203 | /* Define if gettimeofday only takes one argument */
|
---|
204 | #undef GETTIMEOFDAY_ONE_ARG
|
---|
205 |
|
---|
206 | /* Define if you have revoke() */
|
---|
207 | #undef HAVE_REVOKE
|
---|
208 |
|
---|
209 | /* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */
|
---|
210 | #undef HAVE_GRANTPT
|
---|
211 |
|
---|
212 | /* Define if you have fchmod */
|
---|
213 | #undef HAVE_FCHMOD
|
---|
214 |
|
---|
215 | /* Define if you have <sys/type32.h> */
|
---|
216 | #undef HAVE_SYS_TYPES32_H
|
---|