net/tcp/tcp_backlog.c: Add SOMAXCONN definition and implementaton per OpenGroup.org.

This commit is contained in:
zhangyuan7
2018-11-09 11:20:33 -06:00
committed by Gregory Nutt
parent d2cfd398ba
commit f036e2a32a
3 changed files with 25 additions and 0 deletions
+8
View File
@@ -220,6 +220,14 @@
* operations
*/
/* The maximum backlog queue length */
#ifdef CONFIG_NET_TCPBACKLOG_CONNS
# define SOMAXCONN CONFIG_NET_TCPBACKLOG_CONNS
#else
# define SOMAXCONN 0
#endif
/****************************************************************************
* Type Definitions
****************************************************************************/