X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/6e6d4a8b902639de18da98519a2141ea22432700..027878d84624c28b91589ab8550cd652055caece:/lwip/src/include/lwipopts.h diff --git a/lwip/src/include/lwipopts.h b/lwip/src/include/lwipopts.h index f4431d4..ec5a614 100644 --- a/lwip/src/include/lwipopts.h +++ b/lwip/src/include/lwipopts.h @@ -3,6 +3,7 @@ #define NO_SYS 1 + #define LWIP_SOCKET 0 #define LWIP_NETCONN 0 @@ -10,4 +11,19 @@ #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 (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