root / slirp / slirp_config.h @ 5bc89ef6
History | View | Annotate | Download (4.5 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 if you don't have u_int32_t etc. typedef'd */
|
137 | f0cbd3ec | bellard | #undef NEED_TYPEDEFS
|
138 | ec530c81 | bellard | #ifdef __sun__
|
139 | ec530c81 | bellard | #define NEED_TYPEDEFS
|
140 | ec530c81 | bellard | #endif
|
141 | f0cbd3ec | bellard | |
142 | f0cbd3ec | bellard | /* Define to sizeof(char) */
|
143 | f0cbd3ec | bellard | #define SIZEOF_CHAR 1 |
144 | f0cbd3ec | bellard | |
145 | f0cbd3ec | bellard | /* Define to sizeof(short) */
|
146 | f0cbd3ec | bellard | #define SIZEOF_SHORT 2 |
147 | f0cbd3ec | bellard | |
148 | f0cbd3ec | bellard | /* Define to sizeof(int) */
|
149 | f0cbd3ec | bellard | #define SIZEOF_INT 4 |
150 | f0cbd3ec | bellard | |
151 | f0cbd3ec | bellard | /* Define to sizeof(char *) */
|
152 | 101c5935 | bellard | #define SIZEOF_CHAR_P (HOST_LONG_BITS / 8) |
153 | f0cbd3ec | bellard | |
154 | f0cbd3ec | bellard | /* Define if you have random() */
|
155 | f0cbd3ec | bellard | #undef HAVE_RANDOM
|
156 | f0cbd3ec | bellard | |
157 | f0cbd3ec | bellard | /* Define if you have srandom() */
|
158 | f0cbd3ec | bellard | #undef HAVE_SRANDOM
|
159 | f0cbd3ec | bellard | |
160 | f0cbd3ec | bellard | /* Define if you have inet_aton */
|
161 | 379ff53d | bellard | #undef HAVE_INET_ATON
|
162 | 379ff53d | bellard | #ifndef _WIN32
|
163 | f0cbd3ec | bellard | #define HAVE_INET_ATON
|
164 | 379ff53d | bellard | #endif
|
165 | f0cbd3ec | bellard | |
166 | f0cbd3ec | bellard | /* Define if you have setenv */
|
167 | f0cbd3ec | bellard | #undef HAVE_SETENV
|
168 | f0cbd3ec | bellard | |
169 | f0cbd3ec | bellard | /* Define if you have index() */
|
170 | 79383c9c | blueswir1 | #define HAVE_INDEX
|
171 | f0cbd3ec | bellard | |
172 | f0cbd3ec | bellard | /* Define if you have bcmp() */
|
173 | f0cbd3ec | bellard | #undef HAVE_BCMP
|
174 | f0cbd3ec | bellard | |
175 | f0cbd3ec | bellard | /* Define if you have drand48 */
|
176 | f0cbd3ec | bellard | #undef HAVE_DRAND48
|
177 | f0cbd3ec | bellard | |
178 | f0cbd3ec | bellard | /* Define if you have memmove */
|
179 | f0cbd3ec | bellard | #define HAVE_MEMMOVE
|
180 | f0cbd3ec | bellard | |
181 | f0cbd3ec | bellard | /* Define if you have gethostid */
|
182 | 79383c9c | blueswir1 | #define HAVE_GETHOSTID
|
183 | f0cbd3ec | bellard | |
184 | f0cbd3ec | bellard | /* Define if you DON'T have unix-domain sockets */
|
185 | f0cbd3ec | bellard | #undef NO_UNIX_SOCKETS
|
186 | 379ff53d | bellard | #ifdef _WIN32
|
187 | 379ff53d | bellard | #define NO_UNIX_SOCKETS
|
188 | 379ff53d | bellard | #endif
|
189 | f0cbd3ec | bellard | |
190 | f0cbd3ec | bellard | /* Define if you have revoke() */
|
191 | f0cbd3ec | bellard | #undef HAVE_REVOKE
|
192 | f0cbd3ec | bellard | |
193 | f0cbd3ec | bellard | /* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */
|
194 | f0cbd3ec | bellard | #undef HAVE_GRANTPT
|
195 | f0cbd3ec | bellard | |
196 | f0cbd3ec | bellard | /* Define if you have fchmod */
|
197 | f0cbd3ec | bellard | #undef HAVE_FCHMOD
|
198 | f0cbd3ec | bellard | |
199 | f0cbd3ec | bellard | /* Define if you have <sys/type32.h> */
|
200 | f0cbd3ec | bellard | #undef HAVE_SYS_TYPES32_H |