aboutsummaryrefslogtreecommitdiffstats
path: root/core/lwip/src/include/lwipopts.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-16 17:48:26 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-16 17:48:26 -0700
commit990cb1bd14b4962df2487d3d9f891479e5b11f83 (patch)
treeeacd40b69700bd9cc569635d0d08e9d81aa71504 /core/lwip/src/include/lwipopts.h
parent6ea4379b7185f462d379aee92aafad770603f930 (diff)
downloadlwip-990cb1bd14b4962df2487d3d9f891479e5b11f83.tar.gz
lwip-990cb1bd14b4962df2487d3d9f891479e5b11f83.tar.xz
lwip-990cb1bd14b4962df2487d3d9f891479e5b11f83.zip
lwip: now to the point we can make a TCP connection...
lwip is now functional enough that TCP and DNS seem to work. More tests still need to be done, though. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/lwip/src/include/lwipopts.h')
-rw-r--r--core/lwip/src/include/lwipopts.h42
1 files changed, 33 insertions, 9 deletions
diff --git a/core/lwip/src/include/lwipopts.h b/core/lwip/src/include/lwipopts.h
index 71f6d719..2b036ccd 100644
--- a/core/lwip/src/include/lwipopts.h
+++ b/core/lwip/src/include/lwipopts.h
@@ -1,30 +1,54 @@
#ifndef __LWIPOPTS_H__
#define __LWIPOPTS_H__
+#include <stdlib.h>
+
#define MEM_SIZE (1 << 18)
+#if 0
#define MEMP_OVERFLOW_CHECK 2 /* XXX: for debugging */
#define MEMP_SANITY_CHECK 1 /* XXX: for debugging */
+#else
+#define MEMP_OVERFLOW_CHECK 0 /* XXX: for debugging */
+#define MEMP_SANITY_CHECK 0 /* XXX: for debugging */
+#endif
#define MEM_USE_POOLS_TRY_BIGGER_POOL 1
-#define TCPIP_MBOX_SIZE 64
-#define TCPIP_THREAD_PRIO 0
-#define TCPIP_THREAD_STACKSIZE 16384
+#define TCPIP_MBOX_SIZE 64
+#define TCPIP_THREAD_PRIO 0
+#define TCPIP_THREAD_STACKSIZE 32768
+
+#define DEFAULT_UDP_RECVMBOX_SIZE 16
+#define DEFAULT_TCP_RECVMBOX_SIZE 16
+#define DEFAULT_ACCEPTMBOX_SIZE 4
+
+#define LWIP_SOCKET 0
-#define MEMP_NUM_TCP_PCB 64
-#define MEMP_NUM_TCP_SEG 256
-#define MEMP_NUM_REASSDATA 32
-#define MEMP_NUM_SYS_TIMEOUT 8
-#define ARP_TABLE_SIZE 16
-#define IP_REASS_MAX_PBUFS 32
+#define MEM_LIBC_MALLOC 1
+#define MEMP_MEM_MALLOC 1
+
+#define MEMP_NUM_TCP_PCB 64
+#define MEMP_NUM_TCP_SEG 256
+#define MEMP_NUM_REASSDATA 32
+#define MEMP_NUM_SYS_TIMEOUT 8
+#define MEMP_NUM_NETCONN 64
+#define MEMP_NUM_TCPIP_MSG_API 64
+#define MEMP_NUM_TCPIP_MSG_INPKT 64
+#define PBUF_POOL_SIZE 256
+#define ARP_TABLE_SIZE 16
+#define IP_REASS_MAX_PBUFS 32
+#define IP_REASS_MAXAGE 10
#define LWIP_NETIF_API 1
#define LWIP_DNS 1
+#define DNS_TABLE_SIZE 16
#define DNS_MAX_SERVERS 4
#define TCP_WND 32768
#define TCP_MSS 4096
#define TCP_SND_BUF 4096
+#define ETHARP_TRUST_IP_MAC 0
+
#define LWIP_PLATFORM_BYTESWAP 1
#endif /* __LWIPOPTS_H__ */