Statistics
| Branch: | Revision:

root / slirp / slirp_config.h @ b6dce92e

History | View | Annotate | Download (4.4 kB)

1 f0cbd3ec bellard
/*
2 f0cbd3ec bellard
 * User definable configuration options
3 f0cbd3ec bellard
 */
4 f0cbd3ec bellard
5 f0cbd3ec bellard
/* Define if you want the connection to be probed */
6 f0cbd3ec bellard
/* XXX Not working yet, so ignore this for now */
7 f0cbd3ec bellard
#undef PROBE_CONN
8 f0cbd3ec bellard
9 f0cbd3ec bellard
/* Define to 1 if you want KEEPALIVE timers */
10 f0cbd3ec bellard
#define DO_KEEPALIVE 0
11 f0cbd3ec bellard
12 f0cbd3ec bellard
/* Define to MAX interfaces you expect to use at once */
13 f0cbd3ec bellard
/* MAX_INTERFACES determines the max. TOTAL number of interfaces (SLIP and PPP) */
14 f0cbd3ec bellard
/* MAX_PPP_INTERFACES determines max. number of PPP interfaces */
15 f0cbd3ec bellard
#define MAX_INTERFACES 1
16 f0cbd3ec bellard
#define MAX_PPP_INTERFACES 1
17 f0cbd3ec bellard
18 f0cbd3ec bellard
/* Define if you want slirp's socket in /tmp */
19 f0cbd3ec bellard
/* XXXXXX Do this in ./configure */
20 f0cbd3ec bellard
#undef USE_TMPSOCKET
21 f0cbd3ec bellard
22 f0cbd3ec bellard
/* Define if you want slirp to use cfsetXspeed() on the terminal */
23 f0cbd3ec bellard
#undef DO_CFSETSPEED
24 f0cbd3ec bellard
25 f0cbd3ec bellard
/* Define this if you want slirp to write to the tty as fast as it can */
26 f0cbd3ec bellard
/* This should only be set if you are using load-balancing, slirp does a */
27 f0cbd3ec bellard
/* pretty good job on single modems already, and seting this will make */
28 f0cbd3ec bellard
/* interactive sessions less responsive */
29 f0cbd3ec bellard
/* XXXXX Talk about having fast modem as unit 0 */
30 f0cbd3ec bellard
#undef FULL_BOLT
31 f0cbd3ec bellard
32 f0cbd3ec bellard
/*
33 f0cbd3ec bellard
 * Define if you want slirp to use less CPU
34 f0cbd3ec bellard
 * You will notice a small lag in interactive sessions, but it's not that bad
35 f0cbd3ec bellard
 * Things like Netscape/ftp/etc. are completely unaffected
36 f0cbd3ec bellard
 * This is mainly for sysadmins who have many slirp users
37 f0cbd3ec bellard
 */
38 f0cbd3ec bellard
#undef USE_LOWCPU
39 f0cbd3ec bellard
40 f0cbd3ec bellard
/* Define this if your compiler doesn't like prototypes */
41 f0cbd3ec bellard
#ifndef __STDC__
42 f0cbd3ec bellard
#define NO_PROTOTYPES
43 f0cbd3ec bellard
#endif
44 f0cbd3ec bellard
45 f0cbd3ec bellard
/*********************************************************/
46 f0cbd3ec bellard
/*
47 f0cbd3ec bellard
 * Autoconf defined configuration options
48 f0cbd3ec bellard
 * You shouldn't need to touch any of these
49 f0cbd3ec bellard
 */
50 f0cbd3ec bellard
51 f0cbd3ec bellard
/* Ignore this */
52 f0cbd3ec bellard
#undef DUMMY_PPP
53 f0cbd3ec bellard
54 f0cbd3ec bellard
/* Define if you have unistd.h */
55 f0cbd3ec bellard
#define HAVE_UNISTD_H
56 f0cbd3ec bellard
57 f0cbd3ec bellard
/* Define if you have stdlib.h */
58 f0cbd3ec bellard
#define HAVE_STDLIB_H
59 f0cbd3ec bellard
60 f0cbd3ec bellard
/* Define if you have sys/ioctl.h */
61 379ff53d bellard
#undef HAVE_SYS_IOCTL_H
62 379ff53d bellard
#ifndef _WIN32
63 ee2654ac bellard
#define HAVE_SYS_IOCTL_H
64 379ff53d bellard
#endif
65 f0cbd3ec bellard
66 f0cbd3ec bellard
/* Define if you have sys/filio.h */
67 f0cbd3ec bellard
#undef HAVE_SYS_FILIO_H
68 ee2654ac bellard
#ifdef __APPLE__
69 ee2654ac bellard
#define HAVE_SYS_FILIO_H
70 ee2654ac bellard
#endif
71 f0cbd3ec bellard
72 f0cbd3ec bellard
/* Define if you have strerror */
73 f0cbd3ec bellard
#define HAVE_STRERROR
74 f0cbd3ec bellard
75 f0cbd3ec bellard
/* Define if you have strdup() */
76 f0cbd3ec bellard
#define HAVE_STRDUP
77 f0cbd3ec bellard
78 f0cbd3ec bellard
/* Define according to how time.h should be included */
79 f0cbd3ec bellard
#define TIME_WITH_SYS_TIME 0
80 f0cbd3ec bellard
#undef HAVE_SYS_TIME_H
81 f0cbd3ec bellard
82 f0cbd3ec bellard
/* Define if you have sys/bitypes.h */
83 f0cbd3ec bellard
#undef HAVE_SYS_BITYPES_H
84 f0cbd3ec bellard
85 f0cbd3ec bellard
/* Define if the machine is big endian */
86 e2542fe2 Juan Quintela
//#undef HOST_WORDS_BIGENDIAN
87 f0cbd3ec bellard
88 f0cbd3ec bellard
/* Define if your sprintf returns char * instead of int */
89 f0cbd3ec bellard
#undef BAD_SPRINTF
90 f0cbd3ec bellard
91 f0cbd3ec bellard
/* Define if you have readv */
92 f0cbd3ec bellard
#undef HAVE_READV
93 f0cbd3ec bellard
94 f0cbd3ec bellard
/* Define if iovec needs to be declared */
95 f0cbd3ec bellard
#undef DECLARE_IOVEC
96 379ff53d bellard
#ifdef _WIN32
97 379ff53d bellard
#define DECLARE_IOVEC
98 379ff53d bellard
#endif
99 f0cbd3ec bellard
100 f0cbd3ec bellard
/* Define if a declaration of sprintf/fprintf is needed */
101 f0cbd3ec bellard
#undef DECLARE_SPRINTF
102 f0cbd3ec bellard
103 f0cbd3ec bellard
/* Define if you have a POSIX.1 sys/wait.h */
104 f0cbd3ec bellard
#undef HAVE_SYS_WAIT_H
105 f0cbd3ec bellard
106 f0cbd3ec bellard
/* Define if you have sys/select.h */
107 379ff53d bellard
#undef HAVE_SYS_SELECT_H
108 379ff53d bellard
#ifndef _WIN32
109 f0cbd3ec bellard
#define HAVE_SYS_SELECT_H
110 379ff53d bellard
#endif
111 f0cbd3ec bellard
112 f0cbd3ec bellard
/* Define if you have strings.h */
113 f0cbd3ec bellard
#define HAVE_STRING_H
114 f0cbd3ec bellard
115 f0cbd3ec bellard
/* Define if you have arpa/inet.h */
116 379ff53d bellard
#undef HAVE_ARPA_INET_H
117 379ff53d bellard
#ifndef _WIN32
118 f0cbd3ec bellard
#define HAVE_ARPA_INET_H
119 379ff53d bellard
#endif
120 f0cbd3ec bellard
121 f0cbd3ec bellard
/* Define if you have sys/signal.h */
122 f0cbd3ec bellard
#undef HAVE_SYS_SIGNAL_H
123 f0cbd3ec bellard
124 f0cbd3ec bellard
/* Define if you have sys/stropts.h */
125 f0cbd3ec bellard
#undef HAVE_SYS_STROPTS_H
126 f0cbd3ec bellard
127 f0cbd3ec bellard
/* Define to whatever your compiler thinks inline should be */
128 79383c9c blueswir1
//#define inline inline
129 f0cbd3ec bellard
130 f0cbd3ec bellard
/* Define to whatever your compiler thinks const should be */
131 79383c9c blueswir1
//#define const const
132 f0cbd3ec bellard
133 f0cbd3ec bellard
/* Define if your compiler doesn't like prototypes */
134 f0cbd3ec bellard
#undef NO_PROTOTYPES
135 f0cbd3ec bellard
136 f0cbd3ec bellard
/* Define to sizeof(char) */
137 f0cbd3ec bellard
#define SIZEOF_CHAR 1
138 f0cbd3ec bellard
139 f0cbd3ec bellard
/* Define to sizeof(short) */
140 f0cbd3ec bellard
#define SIZEOF_SHORT 2
141 f0cbd3ec bellard
142 f0cbd3ec bellard
/* Define to sizeof(int) */
143 f0cbd3ec bellard
#define SIZEOF_INT 4
144 f0cbd3ec bellard
145 f0cbd3ec bellard
/* Define to sizeof(char *) */
146 101c5935 bellard
#define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)
147 f0cbd3ec bellard
148 f0cbd3ec bellard
/* Define if you have random() */
149 f0cbd3ec bellard
#undef HAVE_RANDOM
150 f0cbd3ec bellard
151 f0cbd3ec bellard
/* Define if you have srandom() */
152 f0cbd3ec bellard
#undef HAVE_SRANDOM
153 f0cbd3ec bellard
154 f0cbd3ec bellard
/* Define if you have inet_aton */
155 379ff53d bellard
#undef HAVE_INET_ATON
156 379ff53d bellard
#ifndef _WIN32
157 f0cbd3ec bellard
#define HAVE_INET_ATON
158 379ff53d bellard
#endif
159 f0cbd3ec bellard
160 f0cbd3ec bellard
/* Define if you have setenv */
161 f0cbd3ec bellard
#undef HAVE_SETENV
162 f0cbd3ec bellard
163 f0cbd3ec bellard
/* Define if you have index() */
164 79383c9c blueswir1
#define HAVE_INDEX
165 f0cbd3ec bellard
166 f0cbd3ec bellard
/* Define if you have bcmp() */
167 f0cbd3ec bellard
#undef HAVE_BCMP
168 f0cbd3ec bellard
169 f0cbd3ec bellard
/* Define if you have drand48 */
170 f0cbd3ec bellard
#undef HAVE_DRAND48
171 f0cbd3ec bellard
172 f0cbd3ec bellard
/* Define if you have memmove */
173 f0cbd3ec bellard
#define HAVE_MEMMOVE
174 f0cbd3ec bellard
175 f0cbd3ec bellard
/* Define if you have gethostid */
176 79383c9c blueswir1
#define HAVE_GETHOSTID
177 f0cbd3ec bellard
178 f0cbd3ec bellard
/* Define if you DON'T have unix-domain sockets */
179 f0cbd3ec bellard
#undef NO_UNIX_SOCKETS
180 379ff53d bellard
#ifdef _WIN32
181 379ff53d bellard
#define NO_UNIX_SOCKETS
182 379ff53d bellard
#endif
183 f0cbd3ec bellard
184 f0cbd3ec bellard
/* Define if you have revoke() */
185 f0cbd3ec bellard
#undef HAVE_REVOKE
186 f0cbd3ec bellard
187 f0cbd3ec bellard
/* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */
188 f0cbd3ec bellard
#undef HAVE_GRANTPT
189 f0cbd3ec bellard
190 f0cbd3ec bellard
/* Define if you have fchmod */
191 f0cbd3ec bellard
#undef HAVE_FCHMOD
192 f0cbd3ec bellard
193 f0cbd3ec bellard
/* Define if you have <sys/type32.h> */
194 f0cbd3ec bellard
#undef HAVE_SYS_TYPES32_H