ReactOS 0.4.15-dev-7961-gdcf9eb0
lwipopts.h
Go to the documentation of this file.
1/*
2 ------------------------------------
3 ---------- Memory options ----------
4 ------------------------------------
5*/
6
7/* This combo allows us to implement malloc, free, and realloc ourselves */
8#define MEM_LIBC_MALLOC 1
9#define MEMP_MEM_MALLOC 1
10
11/* Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
12 should be used instead */
13#define LWIP_COMPAT_MUTEX 1
14
15#define MEM_ALIGNMENT 4
16
17#define LWIP_ARP 0
18
19#define ARP_QUEUEING 0
20
21#define ETH_PAD_SIZE 2
22
23#define IP_FORWARD 0
24
25#define IP_REASS_MAX_PBUFS 0xFFFFFFFF
26
27#define IP_DEFAULT_TTL 128
28
29#define IP_SOF_BROADCAST 1
30
31#define IP_SOF_BROADCAST_RECV 1
32
33#define LWIP_ICMP 0
34
35#define LWIP_RAW 0
36
37#define LWIP_DHCP 0
38
39#define LWIP_AUTOIP 0
40
41#define LWIP_SNMP 0
42
43#define LWIP_IGMP 0
44
45#define LWIP_DNS 0
46
47#define LWIP_UDP 0
48
49#define LWIP_UDPLITE 0
50
51#define LWIP_TCP 1
52
53#define TCP_QUEUE_OOSEQ 1
54
55#define SO_REUSE 1
56
57#define SO_REUSE_RXTOALL 1
58
59/* FIXME: These MSS and TCP Window definitions assume an MTU
60 * of 1500. We need to add some code to lwIP which would allow us
61 * to change these values based upon the interface we are
62 * using. Currently ReactOS only supports Ethernet so we're
63 * fine for now but it does need to be fixed later when we
64 * add support for other transport mediums */
65#define TCP_MSS 1460
66
67#define TCP_WND 0xFFFF
68
69#define TCP_SND_BUF TCP_WND
70
71#define TCP_MAXRTX 8
72
73#define TCP_SYNMAXRTX 4
74
75#define TCP_LISTEN_BACKLOG 1
76
77#define LWIP_TCP_TIMESTAMPS 1
78
79#define LWIP_CALLBACK_API 1
80
81#define LWIP_NETIF_API 1
82
83#define LWIP_SOCKET 0
84
85#define LWIP_NETCONN 0
86
87#define LWIP_NETIF_HWADDRHINT 0
88
89#define LWIP_STATS 0
90
91#define ICMP_STATS 0
92
93#define PPP_SUPPORT 0
94
95#define PPPOE_SUPPORT 0
96
97#define PPPOS_SUPPORT 0
98
99/*
100 ---------------------------------------
101 ---------- Debugging options ----------
102 ---------------------------------------
103*/
109#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL
110
115#define LWIP_DBG_TYPES_ON LWIP_DBG_ON
116
120#define NETIF_DEBUG LWIP_DBG_OFF
121
125#define PBUF_DEBUG LWIP_DBG_OFF
126
130#define INET_DEBUG LWIP_DBG_OFF
131
135#define IP_DEBUG LWIP_DBG_OFF
136
140#define IP_REASS_DEBUG LWIP_DBG_OFF
141
145#define MEM_DEBUG LWIP_DBG_OFF
146
150#define MEMP_DEBUG LWIP_DBG_OFF
151
155#define SYS_DEBUG LWIP_DBG_OFF
156
160#define TCP_DEBUG LWIP_DBG_ON
161
165#define TCP_INPUT_DEBUG LWIP_DBG_OFF
166
170#define TCP_FR_DEBUG LWIP_DBG_OFF
171
176#define TCP_RTO_DEBUG LWIP_DBG_OFF
177
181#define TCP_CWND_DEBUG LWIP_DBG_OFF
182
186#define TCP_WND_DEBUG LWIP_DBG_OFF
187
191#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
192
196#define TCP_RST_DEBUG LWIP_DBG_OFF
197
201#define TCP_QLEN_DEBUG LWIP_DBG_OFF
202
206#define TCPIP_DEBUG LWIP_DBG_OFF