X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/6f9272bdabcda81425ec1aaecf26a160535d4749..2c9b12c13a216fbaca15d3c0d4bf0b994950117f:/lwip/src/include/lwipopts.h?ds=inline diff --git a/lwip/src/include/lwipopts.h b/lwip/src/include/lwipopts.h index c2ef625..ec5a614 100644 --- a/lwip/src/include/lwipopts.h +++ b/lwip/src/include/lwipopts.h @@ -11,7 +11,19 @@ #define LWIP_DHCP 1 -#define MEM_SIZE 65536 -#define TCP_SND_BUF 2048 +/* For big ones... */ +extern void _memcpy(void *dest, const void *src, int bytes); +#define MEMCPY(dst,src,len) _memcpy(dst,src,len) + +/* Lots of tricks from http://lists.gnu.org/archive/html/lwip-users/2006-11/msg00007.html */ + +#define MEM_SIZE (128*1024) +#define TCP_MSS 1460 +#define TCP_WND 24000 +#define TCP_SND_BUF (16 * TCP_MSS) +#define TCP_SND_QUEUELEN 16 + +#define MEMP_NUM_PBUF 128 +#define PBUF_POOL_SIZE 96 #endif