lwip: activate TCP_LISTEN_BACKLOG per default with sock_tcp

Prevents unnecessary usage of resources, as the queue of `sock_tcp` is
restricted.
This commit is contained in:
Martine Lenders 2020-02-21 20:12:22 +01:00 committed by Martine S. Lenders
parent 1a4e6e9cdb
commit a7ef50636e
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -134,6 +134,14 @@ extern "C" {
#define LWIP_NETCONN (0)
#endif
#ifndef TCP_LISTEN_BACKLOG
# if defined(MODULE_LWIP_SOCK_TCP)
# define TCP_LISTEN_BACKLOG (1)
# else
# define TCP_LISTEN_BACKLOG (0)
# endif
#endif /* TCP_LISTEN_BACKLOG */
#define LWIP_SOCKET (0)
#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS