aboutsummaryrefslogtreecommitdiffstats
path: root/core/lwip/src/include/lwipopts.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-15 23:21:24 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-15 23:21:24 -0700
commit6aa0542126e53fe96e6c794d35b7e36cfc925a47 (patch)
tree687659ef2c2d48827b90768596a37aaafed938e3 /core/lwip/src/include/lwipopts.h
parent2cb4b33e20b10b2fc4f2808f498879b3d5ac7efd (diff)
downloadlwip-6aa0542126e53fe96e6c794d35b7e36cfc925a47.tar.gz
lwip-6aa0542126e53fe96e6c794d35b7e36cfc925a47.tar.xz
lwip-6aa0542126e53fe96e6c794d35b7e36cfc925a47.zip
core: pxe: additional work on the lwip port
Additional work on the lwip port. With this code, we can get pretty far before having problems. This moves malloc into the core directory, mostly so we can guard the malloc stuff with semaphores. I suspect we're going to have to have at least stub semaphores available to the library, since other things are going to need to be made thread-safe, too. This checkin contains debugging printfs and considerable amounts of placeholder code, that needs to be fixed. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/lwip/src/include/lwipopts.h b/core/lwip/src/include/lwipopts.h
index 8bb1a838..71f6d719 100644
--- a/core/lwip/src/include/lwipopts.h
+++ b/core/lwip/src/include/lwipopts.h
@@ -6,6 +6,10 @@
#define MEMP_SANITY_CHECK 1 /* XXX: for debugging */
#define MEM_USE_POOLS_TRY_BIGGER_POOL 1
+#define TCPIP_MBOX_SIZE 64
+#define TCPIP_THREAD_PRIO 0
+#define TCPIP_THREAD_STACKSIZE 16384
+
#define MEMP_NUM_TCP_PCB 64
#define MEMP_NUM_TCP_SEG 256
#define MEMP_NUM_REASSDATA 32
@@ -13,10 +17,14 @@
#define ARP_TABLE_SIZE 16
#define IP_REASS_MAX_PBUFS 32
+#define LWIP_NETIF_API 1
+
#define LWIP_DNS 1
#define DNS_MAX_SERVERS 4
#define TCP_WND 32768
#define TCP_MSS 4096
#define TCP_SND_BUF 4096
+#define LWIP_PLATFORM_BYTESWAP 1
+
#endif /* __LWIPOPTS_H__ */