aboutsummaryrefslogtreecommitdiffstats
path: root/core/lwip/src/include/lwipopts.h
blob: 6beaab4f85d6be0a6d04bbe4622e112aa7131a61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#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         	512
#define TCPIP_THREAD_PRIO		0
#define TCPIP_THREAD_STACKSIZE		32768

#define DEFAULT_UDP_RECVMBOX_SIZE	16
#define DEFAULT_TCP_RECVMBOX_SIZE	128
#define DEFAULT_ACCEPTMBOX_SIZE		4

#define LWIP_SOCKET			0

#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		64
#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_MSS			1460
#define TCP_WND			64000
#define TCP_SND_BUF		(4*TCP_MSS)
#define LWIP_TCP_TIMESTAMPS	1

#define ETHARP_TRUST_IP_MAC	0

#define LWIP_PLATFORM_BYTESWAP	1

#define LWIP_STATS		1
#define LWIP_STATS_DISPLAY	1

#endif /* __LWIPOPTS_H__ */