[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/LWIP PATCH 2/5] sys/socket.h: Add SOMAXCONN macro
- To: minios-devel@xxxxxxxxxxxxx
- From: Costin Lupu <costin.lupu@xxxxxxxxx>
- Date: Wed, 4 Sep 2019 22:09:09 +0300
- Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
- Delivery-date: Wed, 04 Sep 2019 19:09:24 +0000
- Ironport-phdr: 9a23:OW38BByIbda4V+nXCy+O+j09IxM/srCxBDY+r6Qd2uwTIJqq85mqBkHD//Il1AaPAdyBrasb1qGP6fGocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmSSxbalvIBi0rQjdudQajZVmJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlSEKPCM7/m7KkMx9lKJVrgy8qRJxwIDaZ4OaNPRlc6/BYd8XX3ZNU9xNWyBdBI63cosBD/AGPeZdt4TwuVwOrQCiBQmtAuPk1zlGhmLu3a0nzu8sFh3J3As7H9ISsXTUqs/5NKMPUeCt0anF1inMb+hM1Tfl9YjHaQotoeuLXb9pd8fa1EohFxvdg1mNpoHpIimZ2+cNvmSB8eZsS+Cih3Qppg1pvzSiydoghpPKi48V0FzI6yt0zYgvKdGlR0N3f9ipG4ZKuS6ALYt5WMYiTnltuCY917IJp4a2fDMPyJQ73x7fbOGHc5SQ7hLjSumRJTB4iWp7eLK6nRmy8EygxvfgWcmvylpKtjdFncLWunAX0Bzf8smHSv1j8Ue9wTuDyg/e5vxeLU03lafXMYAtzqAym5YJv0nPBir2l1/3jK+SeEUk4O+o6+H/b7r6oZ+cLJN0igD4Mqg0nsy/HPw4MhUVUmeH4uSwzqXj/VDiT7lQlP02lbHVsIrGKsQDuq65HwhV354m6xa+CTem0dMYnWIeIF1YZh2HkZbmO1XVLfD8DPe/mEiskCxxy/HJILLhBI/BLn/ZkLfuZbx98VJTyBIvzdBD4JJZEr8BL+z3Wk/wrNzXEAU1Mwypw+bmFNp915gTWWSRDaCFNKPdq0SH6vgxLOmRfIUVoiryK+A55/7yin80gUQdfais3ZsQbnC0BPdmI1iHbnrqg9YOD30KsxE4TOP0lFKCVSRcaG2oU60i+zExEJimApvbRoCxnLyB2z+2HoNSZm9cF1+DCW3nd4OZVPcWdi2SI9VtnSceWre8TI8h1AyuuRThy7p7M+rb5zcUuoj/29hu/eHTiAky+iduA8SH1GHeB11zy2YJQT4xx+VzrFJwzn+H0LNkmLpIGNoV4OlGASkgMpuJ5OthF9H0EibcZsrBHF2hWcmnB3c1U8os69QVJV5gEZO4iUaQjGKRH7YJmunTV9QP+aXG0i2pKg==
- Ironport-sdr: Pb8xnRUpH2sq6PlpQTfWLL8MMfZ+r2X/ou2FOCfD8BA2IpwL32/WfV1EJqGwqhVPLDA3UWD5aC LNE/ab5BazbQ==
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
This is the maximum value for the backlog parameter of listen() function.
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
include/sys/socket.h | 4 ++++
1 file changed, 4 insertions(+)
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);
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|