]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
sys/socket.h: Add SOMAXCONN macro
authorCostin Lupu <costin.lupu@cs.pub.ro>
Wed, 4 Sep 2019 19:09:09 +0000 (22:09 +0300)
committerCostin Lupu <costin.lup@gmail.com>
Mon, 9 Sep 2019 16:37:08 +0000 (19:37 +0300)
This is the maximum value for the backlog parameter of listen() function.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
include/sys/socket.h

index 7a8aca0270d01a6a75bf93c6502bb0492c9b3651..aff064e6b8c81fc8e85f998f61f9fbf37ad80421 100644 (file)
 #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);