lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Switching to 1.4.1 points to an error in my lwipopts?


From: Mason
Subject: [lwip-users] Switching to 1.4.1 points to an error in my lwipopts?
Date: Mon, 20 Feb 2012 16:28:17 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Firefox/10.0.2 SeaMonkey/2.7.2

Hello,

I ported lwip 1.4.0 to my platform, and the port builds
with no errors.

When I tried the 1.4.1 branch, the port fails to build:

src/core/init.c:269:4:
error: #error "lwip_sanity_check: WARNING: TCP_WND is larger than space
provided by PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - protocol headers).
If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS
to 1 to disable this error."

NOTE : I *don't* really know what I am doing!

1.4.0 had

if (TCP_WND > (PBUF_POOL_SIZE*PBUF_POOL_BUFSIZE))
  LWIP_PLATFORM_DIAG((
  "lwip_sanity_check: WARNING: TCP_WND is larger than space
provided by PBUF_POOL_SIZE*PBUF_POOL_BUFSIZE\n"));

1.4.1 has

#if TCP_WND > (PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - (PBUF_LINK_HLEN + 
PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN)))
  #error "lwip_sanity_check: WARNING: TCP_WND is larger than space
  provided by PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - protocol headers). [...]


I'm confused by the mention of POOLs because I thought
I wasn't using them, when I defined MEMP_MEM_MALLOC?

I note that I've defined TCP_WND to 58400.

I set the following definitions based on what I thought they did:
#define TCP_MSS 1460
#define TCP_WND (40*TCP_MSS)
#define TCP_SND_BUF (8*TCP_MSS)
#define TCP_SND_QUEUELEN 16


My full lwipopts.h

#define SYS_LIGHTWEIGHT_PROT 1
#define MEM_LIBC_MALLOC 1
#define MEMP_MEM_MALLOC 1
#define MEM_ALIGNMENT   4
#define IP_REASSEMBLY 0
#define IP_DEFAULT_TTL 240
#define LWIP_BROADCAST_PING 1
#define LWIP_RAW  0
#define LWIP_DHCP 1
#define LWIP_DNS  1
#define DNS_TABLE_SIZE 40
#define TCP_MSS 1460
#define TCP_WND (40*TCP_MSS)
#define TCP_SND_BUF (8*TCP_MSS)
#define TCP_SND_QUEUELEN 16
#define LWIP_TCPIP_CORE_LOCKING 1
#define LWIP_TCPIP_CORE_LOCKING_INPUT 1

-- 
Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]