VirtualBox

source: vbox/trunk/src/VBox/Devices/Network/slirp/slirp_config.h

Last change on this file was 98103, checked in by vboxsync, 16 months ago

Copyright year updates by scm.

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

© 2023 Oracle
ContactPrivacy policyTerms of Use