slirp_config.h 4.4 KB
Newer Older
B
bellard 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
/*
 * User definable configuration options
 */

/* Define if you want the connection to be probed */
/* XXX Not working yet, so ignore this for now */
#undef PROBE_CONN

/* Define to 1 if you want KEEPALIVE timers */
#define DO_KEEPALIVE 0

/* Define to MAX interfaces you expect to use at once */
/* MAX_INTERFACES determines the max. TOTAL number of interfaces (SLIP and PPP) */
/* MAX_PPP_INTERFACES determines max. number of PPP interfaces */
#define MAX_INTERFACES 1
#define MAX_PPP_INTERFACES 1

/* Define if you want slirp's socket in /tmp */
/* XXXXXX Do this in ./configure */
#undef USE_TMPSOCKET

/* Define if you want slirp to use cfsetXspeed() on the terminal */
#undef DO_CFSETSPEED

/* Define this if you want slirp to write to the tty as fast as it can */
/* This should only be set if you are using load-balancing, slirp does a */
/* pretty good job on single modems already, and seting this will make */
/* interactive sessions less responsive */
/* XXXXX Talk about having fast modem as unit 0 */
#undef FULL_BOLT

/*
 * Define if you want slirp to use less CPU
 * You will notice a small lag in interactive sessions, but it's not that bad
 * Things like Netscape/ftp/etc. are completely unaffected
 * This is mainly for sysadmins who have many slirp users
 */
#undef USE_LOWCPU

/* Define this if your compiler doesn't like prototypes */
#ifndef __STDC__
#define NO_PROTOTYPES
#endif

/*********************************************************/
/*
 * Autoconf defined configuration options
 * You shouldn't need to touch any of these
 */

/* Ignore this */
#undef DUMMY_PPP

/* Define if you have unistd.h */
#define HAVE_UNISTD_H

/* Define if you have stdlib.h */
#define HAVE_STDLIB_H

/* Define if you have sys/ioctl.h */
B
bellard 已提交
61 62
#undef HAVE_SYS_IOCTL_H
#ifndef _WIN32
B
bellard 已提交
63
#define HAVE_SYS_IOCTL_H
B
bellard 已提交
64
#endif
B
bellard 已提交
65 66 67

/* Define if you have sys/filio.h */
#undef HAVE_SYS_FILIO_H
B
bellard 已提交
68 69 70
#ifdef __APPLE__
#define HAVE_SYS_FILIO_H
#endif
B
bellard 已提交
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

/* Define if you have strerror */
#define HAVE_STRERROR

/* Define if you have strdup() */
#define HAVE_STRDUP

/* Define according to how time.h should be included */
#define TIME_WITH_SYS_TIME 0
#undef HAVE_SYS_TIME_H

/* Define if you have sys/bitypes.h */
#undef HAVE_SYS_BITYPES_H

/* Define if the machine is big endian */
86
//#undef HOST_WORDS_BIGENDIAN
B
bellard 已提交
87 88 89 90 91 92 93 94 95

/* Define if your sprintf returns char * instead of int */
#undef BAD_SPRINTF

/* Define if you have readv */
#undef HAVE_READV

/* Define if iovec needs to be declared */
#undef DECLARE_IOVEC
B
bellard 已提交
96 97 98
#ifdef _WIN32
#define DECLARE_IOVEC
#endif
B
bellard 已提交
99 100 101 102 103 104 105 106

/* Define if a declaration of sprintf/fprintf is needed */
#undef DECLARE_SPRINTF

/* Define if you have a POSIX.1 sys/wait.h */
#undef HAVE_SYS_WAIT_H

/* Define if you have sys/select.h */
B
bellard 已提交
107 108
#undef HAVE_SYS_SELECT_H
#ifndef _WIN32
B
bellard 已提交
109
#define HAVE_SYS_SELECT_H
B
bellard 已提交
110
#endif
B
bellard 已提交
111 112 113 114 115

/* Define if you have strings.h */
#define HAVE_STRING_H

/* Define if you have arpa/inet.h */
B
bellard 已提交
116 117
#undef HAVE_ARPA_INET_H
#ifndef _WIN32
B
bellard 已提交
118
#define HAVE_ARPA_INET_H
B
bellard 已提交
119
#endif
B
bellard 已提交
120 121 122 123 124 125 126 127

/* Define if you have sys/signal.h */
#undef HAVE_SYS_SIGNAL_H

/* Define if you have sys/stropts.h */
#undef HAVE_SYS_STROPTS_H

/* Define to whatever your compiler thinks inline should be */
128
//#define inline inline
B
bellard 已提交
129 130

/* Define to whatever your compiler thinks const should be */
131
//#define const const
B
bellard 已提交
132 133 134 135 136 137 138 139 140 141 142 143 144 145

/* Define if your compiler doesn't like prototypes */
#undef NO_PROTOTYPES

/* Define to sizeof(char) */
#define SIZEOF_CHAR 1

/* Define to sizeof(short) */
#define SIZEOF_SHORT 2

/* Define to sizeof(int) */
#define SIZEOF_INT 4

/* Define to sizeof(char *) */
146
#define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)
B
bellard 已提交
147 148 149 150 151 152 153 154

/* Define if you have random() */
#undef HAVE_RANDOM

/* Define if you have srandom() */
#undef HAVE_SRANDOM

/* Define if you have inet_aton */
B
bellard 已提交
155 156
#undef HAVE_INET_ATON
#ifndef _WIN32
B
bellard 已提交
157
#define HAVE_INET_ATON
B
bellard 已提交
158
#endif
B
bellard 已提交
159 160 161 162 163

/* Define if you have setenv */
#undef HAVE_SETENV

/* Define if you have index() */
164
#define HAVE_INDEX
B
bellard 已提交
165 166 167 168 169 170 171 172 173 174 175

/* Define if you have bcmp() */
#undef HAVE_BCMP

/* Define if you have drand48 */
#undef HAVE_DRAND48

/* Define if you have memmove */
#define HAVE_MEMMOVE

/* Define if you have gethostid */
176
#define HAVE_GETHOSTID
B
bellard 已提交
177 178 179

/* Define if you DON'T have unix-domain sockets */
#undef NO_UNIX_SOCKETS
B
bellard 已提交
180 181 182
#ifdef _WIN32
#define NO_UNIX_SOCKETS
#endif
B
bellard 已提交
183 184 185 186 187 188 189 190 191 192 193 194

/* Define if you have revoke() */
#undef HAVE_REVOKE

/* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */
#undef HAVE_GRANTPT

/* Define if you have fchmod */
#undef HAVE_FCHMOD

/* Define if you have <sys/type32.h> */
#undef HAVE_SYS_TYPES32_H