From afad35a8ac89826e83ac07c673d401228e4f8db9 Mon Sep 17 00:00:00 2001 From: fbernon Date: Mon, 8 Oct 2007 07:39:24 +0000 Subject: [PATCH] Minor change (add a default value to tune for MEMP_NUM_REASSDATA in opt.h) --- src/include/lwip/memp_std.h | 2 +- src/include/lwip/opt.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/memp_std.h b/src/include/lwip/memp_std.h index 9cb30321..c314bf87 100644 --- a/src/include/lwip/memp_std.h +++ b/src/include/lwip/memp_std.h @@ -45,7 +45,7 @@ LWIP_MEMPOOL(TCP_SEG, MEMP_NUM_TCP_SEG, sizeof(struct tcp_seg), #if IP_REASSEMBLY LWIP_MEMPOOL(REASSDATA, MEMP_NUM_REASSDATA, sizeof(struct ip_reassdata), "REASSDATA") -#endif +#endif /* IP_REASSEMBLY */ #if LWIP_NETCONN LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF") diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index eadd4755..05df9d90 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -211,6 +211,13 @@ #define MEMP_NUM_TCP_SEG 16 #endif +/** + * MEMP_NUM_REASSDATA: ...@todo to define to a best value + */ +#ifndef MEMP_NUM_REASSDATA +#define MEMP_NUM_REASSDATA 8 +#endif + /** * MEMP_NUM_ARP_QUEUE: the number of simulateously queued outgoing * packets (pbufs) that are waiting for an ARP request (to resolve