Statistics
| Branch: | Revision:

root / slirp / slirp_config.h @ c9f10306

History | View | Annotate | Download (4.6 kB)

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