Statistics
| Branch: | Revision:

root / slirp / slirp_config.h @ a74cdab4

History | View | Annotate | Download (4.2 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 you have readv */
89 f0cbd3ec bellard
#undef HAVE_READV
90 f0cbd3ec bellard
91 f0cbd3ec bellard
/* Define if iovec needs to be declared */
92 f0cbd3ec bellard
#undef DECLARE_IOVEC
93 379ff53d bellard
#ifdef _WIN32
94 379ff53d bellard
#define DECLARE_IOVEC
95 379ff53d bellard
#endif
96 f0cbd3ec bellard
97 f0cbd3ec bellard
/* Define if you have a POSIX.1 sys/wait.h */
98 f0cbd3ec bellard
#undef HAVE_SYS_WAIT_H
99 f0cbd3ec bellard
100 f0cbd3ec bellard
/* Define if you have sys/select.h */
101 379ff53d bellard
#undef HAVE_SYS_SELECT_H
102 379ff53d bellard
#ifndef _WIN32
103 f0cbd3ec bellard
#define HAVE_SYS_SELECT_H
104 379ff53d bellard
#endif
105 f0cbd3ec bellard
106 f0cbd3ec bellard
/* Define if you have strings.h */
107 f0cbd3ec bellard
#define HAVE_STRING_H
108 f0cbd3ec bellard
109 f0cbd3ec bellard
/* Define if you have arpa/inet.h */
110 379ff53d bellard
#undef HAVE_ARPA_INET_H
111 379ff53d bellard
#ifndef _WIN32
112 f0cbd3ec bellard
#define HAVE_ARPA_INET_H
113 379ff53d bellard
#endif
114 f0cbd3ec bellard
115 f0cbd3ec bellard
/* Define if you have sys/signal.h */
116 f0cbd3ec bellard
#undef HAVE_SYS_SIGNAL_H
117 f0cbd3ec bellard
118 f0cbd3ec bellard
/* Define if you have sys/stropts.h */
119 f0cbd3ec bellard
#undef HAVE_SYS_STROPTS_H
120 f0cbd3ec bellard
121 f0cbd3ec bellard
/* Define to whatever your compiler thinks inline should be */
122 79383c9c blueswir1
//#define inline inline
123 f0cbd3ec bellard
124 f0cbd3ec bellard
/* Define to whatever your compiler thinks const should be */
125 79383c9c blueswir1
//#define const const
126 f0cbd3ec bellard
127 f0cbd3ec bellard
/* Define if your compiler doesn't like prototypes */
128 f0cbd3ec bellard
#undef NO_PROTOTYPES
129 f0cbd3ec bellard
130 f0cbd3ec bellard
/* Define to sizeof(char) */
131 f0cbd3ec bellard
#define SIZEOF_CHAR 1
132 f0cbd3ec bellard
133 f0cbd3ec bellard
/* Define to sizeof(short) */
134 f0cbd3ec bellard
#define SIZEOF_SHORT 2
135 f0cbd3ec bellard
136 f0cbd3ec bellard
/* Define to sizeof(int) */
137 f0cbd3ec bellard
#define SIZEOF_INT 4
138 f0cbd3ec bellard
139 f0cbd3ec bellard
/* Define to sizeof(char *) */
140 101c5935 bellard
#define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)
141 f0cbd3ec bellard
142 f0cbd3ec bellard
/* Define if you have random() */
143 f0cbd3ec bellard
#undef HAVE_RANDOM
144 f0cbd3ec bellard
145 f0cbd3ec bellard
/* Define if you have srandom() */
146 f0cbd3ec bellard
#undef HAVE_SRANDOM
147 f0cbd3ec bellard
148 f0cbd3ec bellard
/* Define if you have inet_aton */
149 379ff53d bellard
#undef HAVE_INET_ATON
150 379ff53d bellard
#ifndef _WIN32
151 f0cbd3ec bellard
#define HAVE_INET_ATON
152 379ff53d bellard
#endif
153 f0cbd3ec bellard
154 f0cbd3ec bellard
/* Define if you have setenv */
155 f0cbd3ec bellard
#undef HAVE_SETENV
156 f0cbd3ec bellard
157 f0cbd3ec bellard
/* Define if you have index() */
158 79383c9c blueswir1
#define HAVE_INDEX
159 f0cbd3ec bellard
160 f0cbd3ec bellard
/* Define if you have bcmp() */
161 f0cbd3ec bellard
#undef HAVE_BCMP
162 f0cbd3ec bellard
163 f0cbd3ec bellard
/* Define if you have drand48 */
164 f0cbd3ec bellard
#undef HAVE_DRAND48
165 f0cbd3ec bellard
166 f0cbd3ec bellard
/* Define if you have memmove */
167 f0cbd3ec bellard
#define HAVE_MEMMOVE
168 f0cbd3ec bellard
169 f0cbd3ec bellard
/* Define if you have gethostid */
170 79383c9c blueswir1
#define HAVE_GETHOSTID
171 f0cbd3ec bellard
172 f0cbd3ec bellard
/* Define if you DON'T have unix-domain sockets */
173 f0cbd3ec bellard
#undef NO_UNIX_SOCKETS
174 379ff53d bellard
#ifdef _WIN32
175 379ff53d bellard
#define NO_UNIX_SOCKETS
176 379ff53d bellard
#endif
177 f0cbd3ec bellard
178 f0cbd3ec bellard
/* Define if you have revoke() */
179 f0cbd3ec bellard
#undef HAVE_REVOKE
180 f0cbd3ec bellard
181 f0cbd3ec bellard
/* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */
182 f0cbd3ec bellard
#undef HAVE_GRANTPT
183 f0cbd3ec bellard
184 f0cbd3ec bellard
/* Define if you have fchmod */
185 f0cbd3ec bellard
#undef HAVE_FCHMOD
186 f0cbd3ec bellard
187 f0cbd3ec bellard
/* Define if you have <sys/type32.h> */
188 f0cbd3ec bellard
#undef HAVE_SYS_TYPES32_H