From: Joshua Wise Date: Sat, 6 Dec 2008 11:09:58 +0000 (-0500) Subject: Manage to get a nice big packet queue going inside lwIP. X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/2d34b5d2cb94b7976fa40e954bcf060bdb5856c2?hp=90122e523ed5d77a6951ec7332c7d5e72eec802c Manage to get a nice big packet queue going inside lwIP. --- diff --git a/lwip/src/include/lwipopts.h b/lwip/src/include/lwipopts.h index a085242..5288a27 100644 --- a/lwip/src/include/lwipopts.h +++ b/lwip/src/include/lwipopts.h @@ -11,10 +11,17 @@ #define LWIP_DHCP 1 +/* 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 65536 -#define TCP_MSS 1400 +#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