# HG changeset patch # User Matt Johnston # Date 1149955178 0 # Node ID 168272e481a8468d7fc29e0ee4c1dc58b67fad1f # Parent 1857c2c551ea6f5bb48363039b83c32b8e5303a2 increase the size of listening sockets if the port count increases diff -r 1857c2c551ea -r 168272e481a8 options.h --- a/options.h Wed Jun 07 16:04:14 2006 +0000 +++ b/options.h Sat Jun 10 15:59:38 2006 +0000 @@ -250,6 +250,9 @@ #define DROPBEAR_MAX_PORTS 10 /* max number of ports which can be specified, ipv4 and ipv6 don't count twice */ +/* Each port might have at least a v4 and a v6 address */ +#define MAX_LISTEN_ADDR (DROPBEAR_MAX_PORTS*3) + #define _PATH_TTY "/dev/tty" #define _PATH_CP "/bin/cp" @@ -300,7 +303,6 @@ #define MAX_PROPOSED_ALGO 20 /* size/count limits */ -#define MAX_LISTEN_ADDR 10 #define MAX_PACKET_LEN 35000 #define MIN_PACKET_LEN 16