From 2349cd2dc363c8eff469afcf14a1476182182bcc Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Fri, 26 Apr 2013 10:17:22 +0200 Subject: [PATCH] lwip: enable SO_RCVBUF socket option In issue #313 the SO_RCVBUF was intended to be enabled, however the current lwip port looks for another define LWIP_SO_RCVBUF instead of LWIP_RCVBUF. Fixes #716 --- libports/include/lwip/lwipopts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libports/include/lwip/lwipopts.h b/libports/include/lwip/lwipopts.h index 6ef45266af..c710c70503 100644 --- a/libports/include/lwip/lwipopts.h +++ b/libports/include/lwip/lwipopts.h @@ -51,7 +51,7 @@ #define TCP_MSS 1460 #define TCP_WND (32 * TCP_MSS) -#define TCP_SND_BUF (128 * TCP_MSS) +#define TCP_SND_BUF (128 * TCP_MSS > 65535 ? 65535 : 128 * TCP_MSS) #define TCP_SND_QUEUELEN ((32 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) #define RECV_BUFSIZE_DEFAULT 2147483647 /* this is actually INT_MAX, default value */