comparison options.h @ 555:daf52f813328

- Add option to change zlib windowBits/memLevel
author Matt Johnston <matt@ucc.asn.au>
date Sun, 26 Jul 2009 15:39:47 +0000
parents 1d5a3df28b53
children 73de9177e7dd 7f66b8e40f2d
comparison
equal deleted inserted replaced
554:1d5a3df28b53 555:daf52f813328
128 * rather than just from the random byte source. Undefining this will save you 128 * rather than just from the random byte source. Undefining this will save you
129 * ~4k in binary size with static uclibc, but your DSS hostkey could be exposed 129 * ~4k in binary size with static uclibc, but your DSS hostkey could be exposed
130 * if the random number source isn't good. In general this isn't required */ 130 * if the random number source isn't good. In general this isn't required */
131 /* #define DSS_PROTOK */ 131 /* #define DSS_PROTOK */
132 132
133 /* Control the memory/performance/compression tradeoff for zlib.
134 * Set windowBits=8, memLevel=1 for least memory usage, see your system's
135 * zlib.h for full details.
136 * Default settings (windowBits=15, memLevel=8) will use
137 * 256kB for compression + 32kB for decompression.
138 * windowBits=8, memLevel=1 will use 10kB compression + 32kB decompression.
139 * Note that windowBits is only set for deflate() - inflate() always uses the
140 * default of 15 so as to interoperate with other clients. */
141 #ifndef DROPBEAR_ZLIB_WINDOW_BITS
142 #define DROPBEAR_ZLIB_WINDOW_BITS 15
143 #endif
144 #ifndef DROPBEAR_ZLIB_MEM_LEVEL
145 #define DROPBEAR_ZLIB_MEM_LEVEL 8
146 #endif
147
133 /* Whether to do reverse DNS lookups. */ 148 /* Whether to do reverse DNS lookups. */
134 #define DO_HOST_LOOKUP 149 #define DO_HOST_LOOKUP
135 150
136 /* Whether to print the message of the day (MOTD). This doesn't add much code 151 /* Whether to print the message of the day (MOTD). This doesn't add much code
137 * size */ 152 * size */
246 /* Size of the network receive window. This amount of memory is allocated 261 /* Size of the network receive window. This amount of memory is allocated
247 as a per-channel receive buffer. Increasing this value can make a 262 as a per-channel receive buffer. Increasing this value can make a
248 significant difference to network performance. 24kB was empirically 263 significant difference to network performance. 24kB was empirically
249 chosen for a 100mbit ethernet network. The value can be altered at 264 chosen for a 100mbit ethernet network. The value can be altered at
250 runtime with the -W argument. */ 265 runtime with the -W argument. */
266 #ifndef DEFAULT_RECV_WINDOW
251 #define DEFAULT_RECV_WINDOW 24576 267 #define DEFAULT_RECV_WINDOW 24576
268 #endif
252 /* Maximum size of a received SSH data packet - this _MUST_ be >= 32768 269 /* Maximum size of a received SSH data packet - this _MUST_ be >= 32768
253 in order to interoperate with other implementations */ 270 in order to interoperate with other implementations */
271 #ifndef RECV_MAX_PAYLOAD_LEN
254 #define RECV_MAX_PAYLOAD_LEN 32768 272 #define RECV_MAX_PAYLOAD_LEN 32768
273 #endif
255 /* Maximum size of a transmitted data packet - this can be any value, 274 /* Maximum size of a transmitted data packet - this can be any value,
256 though increasing it may not make a significant difference. */ 275 though increasing it may not make a significant difference. */
276 #ifndef TRANS_MAX_PAYLOAD_LEN
257 #define TRANS_MAX_PAYLOAD_LEN 16384 277 #define TRANS_MAX_PAYLOAD_LEN 16384
278 #endif
258 279
259 /* Ensure that data is transmitted every KEEPALIVE seconds. This can 280 /* Ensure that data is transmitted every KEEPALIVE seconds. This can
260 be overridden at runtime with -K. 0 disables keepalives */ 281 be overridden at runtime with -K. 0 disables keepalives */
261 #define DEFAULT_KEEPALIVE 0 282 #define DEFAULT_KEEPALIVE 0
262 283