diff --git a/src/core/config.h b/src/core/config.h index 91d15fa3351..e87288f7305 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -45,8 +45,6 @@ #define TLS_CA_FILE 0 /*!< no CA list file by default */ #define TLS_CRL_FILE 0 /*!< no CRL by default */ -#define MAX_LISTEN 16 /*!< maximum number of addresses on which we will listen */ - #define CHILD_NO 8 /*!< default number of child processes started */ #define RT_NO 2 /*!< routing tables number */ diff --git a/src/main.c b/src/main.c index 1830b9628ff..2062f4a7450 100644 --- a/src/main.c +++ b/src/main.c @@ -228,9 +228,9 @@ void print_ct_constants(void) printf("SHM_MEM_SIZE=%d, ", SHM_MEM_SIZE); #endif */ - printf("MAX_RECV_BUFFER_SIZE %d, MAX_LISTEN %d," + printf("MAX_RECV_BUFFER_SIZE %d" " MAX_URI_SIZE %d, BUF_SIZE %d, DEFAULT PKG_SIZE %uMB\n", - MAX_RECV_BUFFER_SIZE, MAX_LISTEN, MAX_URI_SIZE, + MAX_RECV_BUFFER_SIZE, MAX_URI_SIZE, BUF_SIZE, PKG_MEM_SIZE); #ifdef USE_TCP printf("poll method support: %s.\n", poll_support); @@ -246,7 +246,6 @@ void print_internals(void) printf(" Default paths to modules: %s\n", MODS_DIR); printf(" Compile flags: %s\n", ver_flags ); printf(" MAX_RECV_BUFFER_SIZE=%d\n", MAX_RECV_BUFFER_SIZE); - printf(" MAX_LISTEN=%d\n", MAX_LISTEN); printf(" MAX_URI_SIZE=%d\n", MAX_URI_SIZE); printf(" BUF_SIZE=%d\n", BUF_SIZE); printf(" DEFAULT PKG_SIZE=%uMB\n", PKG_MEM_SIZE); @@ -422,12 +421,6 @@ int pmtu_discovery = 0; int auto_bind_ipv6 = 0; -#if 0 -char* names[MAX_LISTEN]; /* our names */ -int names_len[MAX_LISTEN]; /* lengths of the names*/ -struct ip_addr addresses[MAX_LISTEN]; /* our ips */ -int addresses_no=0; /* number of names/ips */ -#endif struct socket_info* udp_listen=0; #ifdef USE_TCP int tcp_main_pid=0; /* set after the tcp main process is started */