From: Costin Lupu Date: Wed, 4 Sep 2019 19:09:09 +0000 (+0300) Subject: sys/socket.h: Add SOMAXCONN macro X-Git-Tag: RELEASE-0.4~33 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=beb0667aa20c83c45defad8d5b4121c6892499df;p=unikraft%2Flibs%2Flwip.git sys/socket.h: Add SOMAXCONN macro This is the maximum value for the backlog parameter of listen() function. Signed-off-by: Costin Lupu Reviewed-by: Vlad-Andrei Badoiu --- diff --git a/include/sys/socket.h b/include/sys/socket.h index 7a8aca0..aff064e 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -52,6 +52,10 @@ #define SOCK_SEQPACKET 5 #endif +#ifndef SOMAXCONN +#define SOMAXCONN 128 +#endif + int socket(int domain, int type, int protocol); int accept(int s, struct sockaddr *addr, socklen_t *addrlen); int bind(int s, const struct sockaddr *name, socklen_t namelen);