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
This commit is contained in:
Alexander Boettcher 2013-04-26 10:17:22 +02:00 committed by Norman Feske
parent 86e428cd64
commit 2349cd2dc3

View File

@ -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 */