VirtualBox

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

Last change on this file since 91623 was 88128, checked in by vboxsync, 4 years ago

include/iprt/string.h, src/VBox/Devices/Network/slirp/slirp_config.h: Adjustments for building on Solaris 11.4.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette