Serves a webpage and saves the user entered data in a .txt file all on the MBED
Fork of EthernetNetIf by
Diff: LPC1768/lwip/lwipopts.h
- Revision:
- 5:bc7df6da7589
- Parent:
- 4:9cec8b1dcf09
--- a/LPC1768/lwip/lwipopts.h Fri Jul 09 14:34:26 2010 +0000 +++ b/LPC1768/lwip/lwipopts.h Thu Aug 05 15:09:22 2010 +0000 @@ -53,10 +53,10 @@ #define TUNIF_DEBUG LWIP_DBG_OFF #define UNIXIF_DEBUG LWIP_DBG_OFF #define DELIF_DEBUG LWIP_DBG_OFF -#define SIO_FIFO_DEBUG LWIP_DBG_OFF -#define TCPDUMP_DEBUG LWIP_DBG_OFF +#define SIO_FIFO_DEBUG LWIP_DBG_ON +#define TCPDUMP_DEBUG LWIP_DBG_ON -#define PPP_DEBUG LWIP_DBG_ON +#define PPP_DEBUG LWIP_DBG_OFF #define MEM_DEBUG LWIP_DBG_OFF #define MEMP_DEBUG LWIP_DBG_OFF #define PBUF_DEBUG LWIP_DBG_OFF @@ -70,6 +70,7 @@ #define IP_REASS_DEBUG LWIP_DBG_OFF #define RAW_DEBUG LWIP_DBG_OFF #define ICMP_DEBUG LWIP_DBG_OFF +#define IGMP_DEBUG LWIP_DBG_OFF #define UDP_DEBUG LWIP_DBG_OFF #define TCP_DEBUG LWIP_DBG_OFF #define TCP_INPUT_DEBUG LWIP_DBG_OFF @@ -174,30 +175,34 @@ /* ---------- TCP options ---------- */ #define LWIP_TCP 1 -#define TCP_TTL 255 +//#define TCP_TTL 255 /* Controls if TCP should queue segments that arrive out of order. Define to 0 if your device is low on memory. */ -#define TCP_QUEUE_OOSEQ 0 +#define TCP_QUEUE_OOSEQ 1 /* TCP Maximum segment size. */ //#define TCP_MSS 1024 -#define TCP_MSS 1024//536//0x276 +#define TCP_MSS 536//1024//536//0x276 /* TCP sender buffer space (bytes). */ -#define TCP_SND_BUF 2048 +#define TCP_SND_BUF (3 * TCP_MSS) //2048 /* TCP sender buffer space (pbufs). This must be at least = 2 * TCP_SND_BUF/TCP_MSS for things to work. */ -#define TCP_SND_QUEUELEN (2 * TCP_SND_BUF/TCP_MSS) +#define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS)) /* TCP writable space (bytes). This must be less than or equal to TCP_SND_BUF. It is the amount of space which must be available in the tcp snd_buf for select to return writable */ -#define TCP_SNDLOWAT (TCP_SND_BUF/2) +#define TCP_SNDLOWAT ((TCP_SND_BUF)/2) +/** + * TCP_WND: The size of a TCP window. This must be at least + * (2 * TCP_MSS) for things to work well + */ /* TCP receive window. */ -#define TCP_WND 1024 //8096 +#define TCP_WND (4 * TCP_MSS) //8096 /* Maximum number of retransmissions of data segments. */ //#define TCP_MAXRTX 12 @@ -272,14 +277,14 @@ /* TCP Maximum segment size. */ //#define TCP_MSS 1024 -#define TCP_MSS 512//0x276//536//0x276 +#define TCP_MSS 536//0x276//536//0x276 /* TCP sender buffer space (bytes). */ -#define TCP_SND_BUF 1024//2048 +#define TCP_SND_BUF (3 * TCP_MSS) /* TCP sender buffer space (pbufs). This must be at least = 2 * TCP_SND_BUF/TCP_MSS for things to work. */ -#define TCP_SND_QUEUELEN (4 * TCP_SND_BUF/TCP_MSS)//(4 * TCP_SND_BUF/TCP_MSS) +#define TCP_SND_QUEUELEN (2 * TCP_SND_BUF/TCP_MSS)//(4 * TCP_SND_BUF/TCP_MSS) /* TCP writable space (bytes). This must be less than or equal to TCP_SND_BUF. It is the amount of space which must be @@ -287,7 +292,7 @@ #define TCP_SNDLOWAT (TCP_SND_BUF/2) /* TCP receive window. */ -#define TCP_WND 512 //8096 +#define TCP_WND (3 * TCP_MSS) //8096 /* Maximum number of retransmissions of data segments. */ //#define TCP_MAXRTX 12 @@ -299,8 +304,8 @@ /* ---------- ARP options ---------- */ #define LWIP_ARP (NET_ETH | NET_ZG2100) -#define ARP_TABLE_SIZE 2//4//10 -#define ARP_QUEUEING 0//1 +#define ARP_TABLE_SIZE 4//10 +#define ARP_QUEUEING 0 #define ETHARP_TRUST_IP_MAC 1 /* ---------- IP options ---------- */ @@ -321,6 +326,9 @@ /* ---------- ICMP options ---------- */ #define ICMP_TTL 255 +/* ---------- IGMP options ---------- */ +#define LWIP_IGMP (NET_ETH | NET_ZG2100) + /* ---------- DHCP options ---------- */ /* Define LWIP_DHCP to 1 if you want DHCP configuration of interfaces. */