[sr-dev] git:master:79aa7201: core: removed unused MAX_LISTEN

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 25 14:12:56 CEST 2018


Module: kamailio
Branch: master
Commit: 79aa72011ae551c6f82816f352fce7582e371f93
URL: https://github.com/kamailio/kamailio/commit/79aa72011ae551c6f82816f352fce7582e371f93

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-07-25T14:10:00+02:00

core: removed unused MAX_LISTEN

- it was printed in version output, not having any relevance anymore

---

Modified: src/core/config.h
Modified: src/main.c

---

Diff:  https://github.com/kamailio/kamailio/commit/79aa72011ae551c6f82816f352fce7582e371f93.diff
Patch: https://github.com/kamailio/kamailio/commit/79aa72011ae551c6f82816f352fce7582e371f93.patch

---

diff --git a/src/core/config.h b/src/core/config.h
index 91d15fa335..e87288f730 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 1830b9628f..2062f4a745 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 */




More information about the sr-dev mailing list