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 */
104 /**
105  * LWIP_DBG_MIN_LEVEL: After masking, the value of the debug is
106  * compared against this value. If it is smaller, then debugging
107  * messages are written.
108  */
109 #define LWIP_DBG_MIN_LEVEL              LWIP_DBG_LEVEL_ALL
110 
111 /**
112  * LWIP_DBG_TYPES_ON: A mask that can be used to globally enable/disable
113  * debug messages of certain types.
114  */
115 #define LWIP_DBG_TYPES_ON               LWIP_DBG_ON
116 
117 /**
118  * NETIF_DEBUG: Enable debugging in netif.c.
119  */
120 #define NETIF_DEBUG                     LWIP_DBG_OFF
121 
122 /**
123  * PBUF_DEBUG: Enable debugging in pbuf.c.
124  */
125 #define PBUF_DEBUG                      LWIP_DBG_OFF
126 
127 /**
128  * INET_DEBUG: Enable debugging in inet.c.
129  */
130 #define INET_DEBUG                      LWIP_DBG_OFF
131 
132 /**
133  * IP_DEBUG: Enable debugging for IP.
134  */
135 #define IP_DEBUG                        LWIP_DBG_OFF
136 
137 /**
138  * IP_REASS_DEBUG: Enable debugging in ip_frag.c for both frag & reass.
139  */
140 #define IP_REASS_DEBUG                  LWIP_DBG_OFF
141 
142 /**
143  * MEM_DEBUG: Enable debugging in mem.c.
144  */
145 #define MEM_DEBUG                       LWIP_DBG_OFF
146 
147 /**
148  * MEMP_DEBUG: Enable debugging in memp.c.
149  */
150 #define MEMP_DEBUG                      LWIP_DBG_OFF
151 
152 /**
153  * SYS_DEBUG: Enable debugging in sys.c.
154  */
155 #define SYS_DEBUG                       LWIP_DBG_OFF
156 
157 /**
158  * TCP_DEBUG: Enable debugging for TCP.
159  */
160 #define TCP_DEBUG                       LWIP_DBG_ON
161 
162 /**
163  * TCP_INPUT_DEBUG: Enable debugging in tcp_in.c for incoming debug.
164  */
165 #define TCP_INPUT_DEBUG                 LWIP_DBG_OFF
166 
167 /**
168  * TCP_FR_DEBUG: Enable debugging in tcp_in.c for fast retransmit.
169  */
170 #define TCP_FR_DEBUG                    LWIP_DBG_OFF
171 
172 /**
173  * TCP_RTO_DEBUG: Enable debugging in TCP for retransmit
174  * timeout.
175  */
176 #define TCP_RTO_DEBUG                   LWIP_DBG_OFF
177 
178 /**
179  * TCP_CWND_DEBUG: Enable debugging for TCP congestion window.
180  */
181 #define TCP_CWND_DEBUG                  LWIP_DBG_OFF
182 
183 /**
184  * TCP_WND_DEBUG: Enable debugging in tcp_in.c for window updating.
185  */
186 #define TCP_WND_DEBUG                   LWIP_DBG_OFF
187 
188 /**
189  * TCP_OUTPUT_DEBUG: Enable debugging in tcp_out.c output functions.
190  */
191 #define TCP_OUTPUT_DEBUG                LWIP_DBG_OFF
192 
193 /**
194  * TCP_RST_DEBUG: Enable debugging for TCP with the RST message.
195  */
196 #define TCP_RST_DEBUG                   LWIP_DBG_OFF
197 
198 /**
199  * TCP_QLEN_DEBUG: Enable debugging for TCP queue lengths.
200  */
201 #define TCP_QLEN_DEBUG                  LWIP_DBG_OFF
202 
203 /**
204  * TCPIP_DEBUG: Enable debugging in tcpip.c.
205  */
206 #define TCPIP_DEBUG                     LWIP_DBG_OFF
207