comparison options.h @ 328:168272e481a8

increase the size of listening sockets if the port count increases
author Matt Johnston <matt@ucc.asn.au>
date Sat, 10 Jun 2006 15:59:38 +0000
parents 55a99934db87
children bfa09e369e0e
comparison
equal deleted inserted replaced
327:1857c2c551ea 328:168272e481a8
248 #define MAX_IP_LEN 15 /* strlen("255.255.255.255") == 15 */ 248 #define MAX_IP_LEN 15 /* strlen("255.255.255.255") == 15 */
249 249
250 #define DROPBEAR_MAX_PORTS 10 /* max number of ports which can be specified, 250 #define DROPBEAR_MAX_PORTS 10 /* max number of ports which can be specified,
251 ipv4 and ipv6 don't count twice */ 251 ipv4 and ipv6 don't count twice */
252 252
253 /* Each port might have at least a v4 and a v6 address */
254 #define MAX_LISTEN_ADDR (DROPBEAR_MAX_PORTS*3)
255
253 #define _PATH_TTY "/dev/tty" 256 #define _PATH_TTY "/dev/tty"
254 257
255 #define _PATH_CP "/bin/cp" 258 #define _PATH_CP "/bin/cp"
256 259
257 /* Timeouts in seconds */ 260 /* Timeouts in seconds */
298 for algos) but seems valid */ 301 for algos) but seems valid */
299 302
300 #define MAX_PROPOSED_ALGO 20 303 #define MAX_PROPOSED_ALGO 20
301 304
302 /* size/count limits */ 305 /* size/count limits */
303 #define MAX_LISTEN_ADDR 10
304 306
305 #define MAX_PACKET_LEN 35000 307 #define MAX_PACKET_LEN 35000
306 #define MIN_PACKET_LEN 16 308 #define MIN_PACKET_LEN 16
307 #define MAX_PAYLOAD_LEN 32768 309 #define MAX_PAYLOAD_LEN 32768
308 310