X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/bbfab4335b270484136e210ca96d24fb92d2c9ce..1deef7f33c284af59d562e7b50812f9649e94d0b:/lwip/src/include/lwipopts.h diff --git a/lwip/src/include/lwipopts.h b/lwip/src/include/lwipopts.h index a085242..368bf86 100644 --- a/lwip/src/include/lwipopts.h +++ b/lwip/src/include/lwipopts.h @@ -11,11 +11,25 @@ #define LWIP_DHCP 1 -#define MEM_SIZE 65536 -#define TCP_MSS 1400 +/* 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 256 +#define PBUF_POOL_SIZE 128 +#define PBUF_POOL_BUFSIZE 512 -#define MEMP_NUM_PBUF 128 +#define LWIP_STATS 1 +#define LWIP_STATS_DISPLAY 1 +#define U16_F "d" +#define U32_F "d" #endif