]> git.sur5r.net Git - freertos/blob - Demo/ARM9_STR91X_IAR/lwip/include/lwip/opt.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / ARM9_STR91X_IAR / lwip / include / lwip / opt.h
1 /*\r
2  * Copyright (c) 2001-2004 Swedish Institute of Computer Science.\r
3  * All rights reserved.\r
4  *\r
5  * Redistribution and use in source and binary forms, with or without modification,\r
6  * are permitted provided that the following conditions are met:\r
7  *\r
8  * 1. Redistributions of source code must retain the above copyright notice,\r
9  *    this list of conditions and the following disclaimer.\r
10  * 2. Redistributions in binary form must reproduce the above copyright notice,\r
11  *    this list of conditions and the following disclaimer in the documentation\r
12  *    and/or other materials provided with the distribution.\r
13  * 3. The name of the author may not be used to endorse or promote products\r
14  *    derived from this software without specific prior written permission.\r
15  *\r
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED\r
17  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
18  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\r
19  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
20  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\r
21  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
22  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
23  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\r
24  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\r
25  * OF SUCH DAMAGE.\r
26  *\r
27  * This file is part of the lwIP TCP/IP stack.\r
28  *\r
29  * Author: Adam Dunkels <adam@sics.se>\r
30  *\r
31  */\r
32 #ifndef __LWIP_OPT_H__\r
33 #define __LWIP_OPT_H__\r
34 \r
35 /* Include user defined options first */\r
36 #include "lwipopts.h"\r
37 #include "lwip/debug.h"\r
38 \r
39 /* Define default values for unconfigured parameters. */\r
40 \r
41 /* Platform specific locking */\r
42 \r
43 /*\r
44  * enable SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection\r
45  * for certain critical regions during buffer allocation, deallocation and memory\r
46  * allocation and deallocation.\r
47  */\r
48 #ifndef SYS_LIGHTWEIGHT_PROT\r
49 #define SYS_LIGHTWEIGHT_PROT            0\r
50 #endif\r
51 \r
52 #ifndef NO_SYS\r
53 #define NO_SYS                          0\r
54 #endif\r
55 /* ---------- Memory options ---------- */\r
56 #ifndef MEM_LIBC_MALLOC\r
57 #define MEM_LIBC_MALLOC                 0\r
58 #endif\r
59 \r
60 /* MEM_ALIGNMENT: should be set to the alignment of the CPU for which\r
61    lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2\r
62    byte alignment -> define MEM_ALIGNMENT to 2. */\r
63 \r
64 #ifndef MEM_ALIGNMENT\r
65 #define MEM_ALIGNMENT                   1\r
66 #endif\r
67 \r
68 /* MEM_SIZE: the size of the heap memory. If the application will send\r
69 a lot of data that needs to be copied, this should be set high. */\r
70 #ifndef MEM_SIZE\r
71 #define MEM_SIZE                        1600\r
72 #endif\r
73 \r
74 #ifndef MEMP_SANITY_CHECK\r
75 #define MEMP_SANITY_CHECK       0\r
76 #endif\r
77 \r
78 /* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application\r
79    sends a lot of data out of ROM (or other static memory), this\r
80    should be set high. */\r
81 #ifndef MEMP_NUM_PBUF\r
82 #define MEMP_NUM_PBUF                   16\r
83 #endif\r
84 \r
85 /* Number of raw connection PCBs */\r
86 #ifndef MEMP_NUM_RAW_PCB\r
87 #define MEMP_NUM_RAW_PCB                4\r
88 #endif\r
89 \r
90 /* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One\r
91    per active UDP "connection". */\r
92 #ifndef MEMP_NUM_UDP_PCB\r
93 #define MEMP_NUM_UDP_PCB                4\r
94 #endif\r
95 /* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP\r
96    connections. */\r
97 #ifndef MEMP_NUM_TCP_PCB\r
98 #define MEMP_NUM_TCP_PCB                5\r
99 #endif\r
100 /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP\r
101    connections. */\r
102 #ifndef MEMP_NUM_TCP_PCB_LISTEN\r
103 #define MEMP_NUM_TCP_PCB_LISTEN         8\r
104 #endif\r
105 /* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP\r
106    segments. */\r
107 #ifndef MEMP_NUM_TCP_SEG\r
108 #define MEMP_NUM_TCP_SEG                16\r
109 #endif\r
110 /* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active\r
111    timeouts. */\r
112 #ifndef MEMP_NUM_SYS_TIMEOUT\r
113 #define MEMP_NUM_SYS_TIMEOUT            3\r
114 #endif\r
115 \r
116 /* The following four are used only with the sequential API and can be\r
117    set to 0 if the application only will use the raw API. */\r
118 /* MEMP_NUM_NETBUF: the number of struct netbufs. */\r
119 #ifndef MEMP_NUM_NETBUF\r
120 #define MEMP_NUM_NETBUF                 2\r
121 #endif\r
122 /* MEMP_NUM_NETCONN: the number of struct netconns. */\r
123 #ifndef MEMP_NUM_NETCONN\r
124 #define MEMP_NUM_NETCONN                4\r
125 #endif\r
126 /* MEMP_NUM_APIMSG: the number of struct api_msg, used for\r
127    communication between the TCP/IP stack and the sequential\r
128    programs. */\r
129 #ifndef MEMP_NUM_API_MSG\r
130 #define MEMP_NUM_API_MSG                8\r
131 #endif\r
132 /* MEMP_NUM_TCPIPMSG: the number of struct tcpip_msg, which is used\r
133    for sequential API communication and incoming packets. Used in\r
134    src/api/tcpip.c. */\r
135 #ifndef MEMP_NUM_TCPIP_MSG\r
136 #define MEMP_NUM_TCPIP_MSG              8\r
137 #endif\r
138 \r
139 /* ---------- Pbuf options ---------- */\r
140 /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */\r
141 \r
142 #ifndef PBUF_POOL_SIZE\r
143 #define PBUF_POOL_SIZE                  16\r
144 #endif\r
145 \r
146 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */\r
147 \r
148 #ifndef PBUF_POOL_BUFSIZE\r
149 #define PBUF_POOL_BUFSIZE               128\r
150 #endif\r
151 \r
152 /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a\r
153    link level header. Defaults to 14 for Ethernet. */\r
154 \r
155 #ifndef PBUF_LINK_HLEN\r
156 #define PBUF_LINK_HLEN                  14\r
157 #endif\r
158 \r
159 \r
160 \r
161 /* ---------- ARP options ---------- */\r
162 \r
163 /** Number of active hardware address, IP address pairs cached */\r
164 #ifndef ARP_TABLE_SIZE\r
165 #define ARP_TABLE_SIZE                  10\r
166 #endif\r
167 \r
168 /**\r
169  * If enabled, outgoing packets are queued during hardware address\r
170  * resolution.\r
171  *\r
172  * This feature has not stabilized yet. Single-packet queueing is\r
173  * believed to be stable, multi-packet queueing is believed to\r
174  * clash with the TCP segment queueing.\r
175  *\r
176  * As multi-packet-queueing is currently disabled, enabling this\r
177  * _should_ work, but we need your testing feedback on lwip-users.\r
178  *\r
179  */\r
180 #ifndef ARP_QUEUEING\r
181 #define ARP_QUEUEING                    1\r
182 #endif\r
183 \r
184 /* This option is deprecated */\r
185 #ifdef ETHARP_QUEUE_FIRST\r
186 #error ETHARP_QUEUE_FIRST option is deprecated. Remove it from your lwipopts.h.\r
187 #endif\r
188 \r
189 /* This option is removed to comply with the ARP standard */\r
190 #ifdef ETHARP_ALWAYS_INSERT\r
191 #error ETHARP_ALWAYS_INSERT option is deprecated. Remove it from your lwipopts.h.\r
192 #endif\r
193 \r
194 /* ---------- IP options ---------- */\r
195 /* Define IP_FORWARD to 1 if you wish to have the ability to forward\r
196    IP packets across network interfaces. If you are going to run lwIP\r
197    on a device with only one network interface, define this to 0. */\r
198 #ifndef IP_FORWARD\r
199 #define IP_FORWARD                      0\r
200 #endif\r
201 \r
202 /* If defined to 1, IP options are allowed (but not parsed). If\r
203    defined to 0, all packets with IP options are dropped. */\r
204 #ifndef IP_OPTIONS\r
205 #define IP_OPTIONS                      1\r
206 #endif\r
207 \r
208 /** IP reassembly and segmentation. Even if they both deal with IP\r
209  *  fragments, note that these are orthogonal, one dealing with incoming\r
210  *  packets, the other with outgoing packets\r
211  */\r
212 \r
213 /** Reassemble incoming fragmented IP packets */\r
214 #ifndef IP_REASSEMBLY\r
215 #define IP_REASSEMBLY                   1\r
216 #endif\r
217 \r
218 /** Fragment outgoing IP packets if their size exceeds MTU */\r
219 #ifndef IP_FRAG\r
220 #define IP_FRAG                         1\r
221 #endif\r
222 \r
223 /* IP reassemly default age in seconds */\r
224 #ifndef IP_REASS_MAXAGE\r
225 #define IP_REASS_MAXAGE 3\r
226 #endif\r
227 \r
228 /* IP reassembly buffer size (minus IP header) */\r
229 #ifndef IP_REASS_BUFSIZE\r
230 #define IP_REASS_BUFSIZE 5760\r
231 #endif\r
232 \r
233 /* Assumed max MTU on any interface for IP frag buffer */\r
234 #ifndef IP_FRAG_MAX_MTU\r
235 #define IP_FRAG_MAX_MTU 1500\r
236 #endif\r
237 \r
238 /** Global default value for Time To Live used by transport layers. */\r
239 #ifndef IP_DEFAULT_TTL\r
240 #define IP_DEFAULT_TTL                  255\r
241 #endif\r
242 \r
243 /* ---------- ICMP options ---------- */\r
244 \r
245 #ifndef ICMP_TTL\r
246 #define ICMP_TTL                        (IP_DEFAULT_TTL)\r
247 #endif\r
248 \r
249 /* ---------- RAW options ---------- */\r
250 \r
251 #ifndef LWIP_RAW\r
252 #define LWIP_RAW                        1\r
253 #endif\r
254 \r
255 #ifndef RAW_TTL\r
256 #define RAW_TTL                        (IP_DEFAULT_TTL)\r
257 #endif\r
258 \r
259 /* ---------- DHCP options ---------- */\r
260 \r
261 #ifndef LWIP_DHCP\r
262 #define LWIP_DHCP                       0\r
263 #endif\r
264 \r
265 /* 1 if you want to do an ARP check on the offered address\r
266    (recommended). */\r
267 #ifndef DHCP_DOES_ARP_CHECK\r
268 #define DHCP_DOES_ARP_CHECK             1\r
269 #endif\r
270 \r
271 /* ---------- SNMP options ---------- */\r
272 /** @note UDP must be available for SNMP transport */\r
273 #ifndef LWIP_SNMP\r
274 #define LWIP_SNMP                       0\r
275 #endif\r
276 \r
277 /** @note At least one request buffer is required.  */\r
278 #ifndef SNMP_CONCURRENT_REQUESTS\r
279 #define SNMP_CONCURRENT_REQUESTS        1\r
280 #endif\r
281 \r
282 /** @note At least one trap destination is required */\r
283 #ifndef SNMP_TRAP_DESTINATIONS\r
284 #define SNMP_TRAP_DESTINATIONS          1\r
285 #endif\r
286 \r
287 #ifndef SNMP_PRIVATE_MIB\r
288 #define SNMP_PRIVATE_MIB                0\r
289 #endif\r
290 \r
291 /* ---------- UDP options ---------- */\r
292 #ifndef LWIP_UDP\r
293 #define LWIP_UDP                        1\r
294 #endif\r
295 \r
296 #ifndef UDP_TTL\r
297 #define UDP_TTL                         (IP_DEFAULT_TTL)\r
298 #endif\r
299 \r
300 /* ---------- TCP options ---------- */\r
301 #ifndef LWIP_TCP\r
302 #define LWIP_TCP                        1\r
303 #endif\r
304 \r
305 #ifndef TCP_TTL\r
306 #define TCP_TTL                         (IP_DEFAULT_TTL)\r
307 #endif\r
308 \r
309 #ifndef TCP_WND\r
310 #define TCP_WND                         2048\r
311 #endif\r
312 \r
313 #ifndef TCP_MAXRTX\r
314 #define TCP_MAXRTX                      12\r
315 #endif\r
316 \r
317 #ifndef TCP_SYNMAXRTX\r
318 #define TCP_SYNMAXRTX                   6\r
319 #endif\r
320 \r
321 \r
322 /* Controls if TCP should queue segments that arrive out of\r
323    order. Define to 0 if your device is low on memory. */\r
324 #ifndef TCP_QUEUE_OOSEQ\r
325 #define TCP_QUEUE_OOSEQ                 1\r
326 #endif\r
327 \r
328 /* TCP Maximum segment size. */\r
329 #ifndef TCP_MSS\r
330 #define TCP_MSS                         128 /* A *very* conservative default. */\r
331 #endif\r
332 \r
333 /* TCP sender buffer space (bytes). */\r
334 #ifndef TCP_SND_BUF\r
335 #define TCP_SND_BUF                     256\r
336 #endif\r
337 \r
338 /* TCP sender buffer space (pbufs). This must be at least = 2 *\r
339    TCP_SND_BUF/TCP_MSS for things to work. */\r
340 #ifndef TCP_SND_QUEUELEN\r
341 #define TCP_SND_QUEUELEN                4 * TCP_SND_BUF/TCP_MSS\r
342 #endif\r
343 \r
344 \r
345 /* Maximum number of retransmissions of data segments. */\r
346 \r
347 /* Maximum number of retransmissions of SYN segments. */\r
348 \r
349 /* TCP writable space (bytes). This must be less than or equal\r
350    to TCP_SND_BUF. It is the amount of space which must be\r
351    available in the tcp snd_buf for select to return writable */\r
352 #ifndef TCP_SNDLOWAT\r
353 #define TCP_SNDLOWAT                    TCP_SND_BUF/2\r
354 #endif\r
355 \r
356 /* Support loop interface (127.0.0.1) */\r
357 #ifndef LWIP_HAVE_LOOPIF\r
358 #define LWIP_HAVE_LOOPIF                0\r
359 #endif\r
360 \r
361 #ifndef LWIP_EVENT_API\r
362 #define LWIP_EVENT_API                  0\r
363 #define LWIP_CALLBACK_API               1\r
364 #else\r
365 #define LWIP_EVENT_API                  1\r
366 #define LWIP_CALLBACK_API               0\r
367 #endif\r
368 \r
369 #ifndef LWIP_COMPAT_SOCKETS\r
370 #define LWIP_COMPAT_SOCKETS             1\r
371 #endif\r
372 \r
373 \r
374 #ifndef TCPIP_THREAD_PRIO\r
375 #define TCPIP_THREAD_PRIO               1\r
376 #endif\r
377 \r
378 #ifndef SLIPIF_THREAD_PRIO\r
379 #define SLIPIF_THREAD_PRIO              1\r
380 #endif\r
381 \r
382 #ifndef PPP_THREAD_PRIO\r
383 #define PPP_THREAD_PRIO                 1\r
384 #endif\r
385 \r
386 #ifndef DEFAULT_THREAD_PRIO\r
387 #define DEFAULT_THREAD_PRIO             1\r
388 #endif\r
389 \r
390 \r
391 /* ---------- Socket Options ---------- */\r
392 /* Enable SO_REUSEADDR and SO_REUSEPORT options */\r
393 #ifdef SO_REUSE\r
394 /* I removed the lot since this was an ugly hack. It broke the raw-API.\r
395    It also came with many ugly goto's, Christiaan Simons. */\r
396 #error "SO_REUSE currently unavailable, this was a hack"\r
397 #endif\r
398 \r
399 \r
400 /* ---------- Statistics options ---------- */\r
401 #ifndef LWIP_STATS\r
402 #define LWIP_STATS                      1\r
403 #endif\r
404 \r
405 #if LWIP_STATS\r
406 \r
407 #ifndef LWIP_STATS_DISPLAY\r
408 #define LWIP_STATS_DISPLAY 0\r
409 #endif\r
410 \r
411 #ifndef LINK_STATS\r
412 #define LINK_STATS  1\r
413 #endif\r
414 \r
415 #ifndef IP_STATS\r
416 #define IP_STATS    1\r
417 #endif\r
418 \r
419 #ifndef IPFRAG_STATS\r
420 #define IPFRAG_STATS    1\r
421 #endif\r
422 \r
423 #ifndef ICMP_STATS\r
424 #define ICMP_STATS  1\r
425 #endif\r
426 \r
427 #ifndef UDP_STATS\r
428 #define UDP_STATS   1\r
429 #endif\r
430 \r
431 #ifndef TCP_STATS\r
432 #define TCP_STATS   1\r
433 #endif\r
434 \r
435 #ifndef MEM_STATS\r
436 #define MEM_STATS   1\r
437 #endif\r
438 \r
439 #ifndef MEMP_STATS\r
440 #define MEMP_STATS  1\r
441 #endif\r
442 \r
443 #ifndef PBUF_STATS\r
444 #define PBUF_STATS  1\r
445 #endif\r
446 \r
447 #ifndef SYS_STATS\r
448 #define SYS_STATS   1\r
449 #endif\r
450 \r
451 #ifndef RAW_STATS\r
452 #define RAW_STATS   0\r
453 #endif\r
454 \r
455 #else\r
456 \r
457 #define LINK_STATS  0\r
458 #define IP_STATS    0\r
459 #define IPFRAG_STATS    0\r
460 #define ICMP_STATS  0\r
461 #define UDP_STATS   0\r
462 #define TCP_STATS   0\r
463 #define MEM_STATS   0\r
464 #define MEMP_STATS  0\r
465 #define PBUF_STATS  0\r
466 #define SYS_STATS   0\r
467 #define RAW_STATS   0\r
468 #define LWIP_STATS_DISPLAY  0\r
469 \r
470 #endif /* LWIP_STATS */\r
471 \r
472 /* ---------- PPP options ---------- */\r
473 \r
474 #ifndef PPP_SUPPORT\r
475 #define PPP_SUPPORT                     0      /* Set for PPP */\r
476 #endif\r
477 \r
478 #if PPP_SUPPORT\r
479 \r
480 #define NUM_PPP                         1      /* Max PPP sessions. */\r
481 \r
482 \r
483 \r
484 #ifndef PAP_SUPPORT\r
485 #define PAP_SUPPORT                     0      /* Set for PAP. */\r
486 #endif\r
487 \r
488 #ifndef CHAP_SUPPORT\r
489 #define CHAP_SUPPORT                    0      /* Set for CHAP. */\r
490 #endif\r
491 \r
492 #define MSCHAP_SUPPORT                  0      /* Set for MSCHAP (NOT FUNCTIONAL!) */\r
493 #define CBCP_SUPPORT                    0      /* Set for CBCP (NOT FUNCTIONAL!) */\r
494 #define CCP_SUPPORT                     0      /* Set for CCP (NOT FUNCTIONAL!) */\r
495 \r
496 #ifndef VJ_SUPPORT\r
497 #define VJ_SUPPORT                      0      /* Set for VJ header compression. */\r
498 #endif\r
499 \r
500 #ifndef MD5_SUPPORT\r
501 #define MD5_SUPPORT                     0      /* Set for MD5 (see also CHAP) */\r
502 #endif\r
503 \r
504 \r
505 /*\r
506  * Timeouts.\r
507  */\r
508 #define FSM_DEFTIMEOUT                  6       /* Timeout time in seconds */\r
509 #define FSM_DEFMAXTERMREQS              2       /* Maximum Terminate-Request transmissions */\r
510 #define FSM_DEFMAXCONFREQS              10      /* Maximum Configure-Request transmissions */\r
511 #define FSM_DEFMAXNAKLOOPS              5       /* Maximum number of nak loops */\r
512 \r
513 #define UPAP_DEFTIMEOUT                 6       /* Timeout (seconds) for retransmitting req */\r
514 #define UPAP_DEFREQTIME                 30      /* Time to wait for auth-req from peer */\r
515 \r
516 #define CHAP_DEFTIMEOUT                 6       /* Timeout time in seconds */\r
517 #define CHAP_DEFTRANSMITS               10      /* max # times to send challenge */\r
518 \r
519 \r
520 /* Interval in seconds between keepalive echo requests, 0 to disable. */\r
521 #if 1\r
522 #define LCP_ECHOINTERVAL                0\r
523 #else\r
524 #define LCP_ECHOINTERVAL                10\r
525 #endif\r
526 \r
527 /* Number of unanswered echo requests before failure. */\r
528 #define LCP_MAXECHOFAILS                3\r
529 \r
530 /* Max Xmit idle time (in jiffies) before resend flag char. */\r
531 #define PPP_MAXIDLEFLAG                 100\r
532 \r
533 /*\r
534  * Packet sizes\r
535  *\r
536  * Note - lcp shouldn't be allowed to negotiate stuff outside these\r
537  *    limits.  See lcp.h in the pppd directory.\r
538  * (XXX - these constants should simply be shared by lcp.c instead\r
539  *    of living in lcp.h)\r
540  */\r
541 #define PPP_MTU                         1500     /* Default MTU (size of Info field) */\r
542 #if 0\r
543 #define PPP_MAXMTU  65535 - (PPP_HDRLEN + PPP_FCSLEN)\r
544 #else\r
545 #define PPP_MAXMTU                      1500 /* Largest MTU we allow */\r
546 #endif\r
547 #define PPP_MINMTU                      64\r
548 #define PPP_MRU                         1500     /* default MRU = max length of info field */\r
549 #define PPP_MAXMRU                      1500     /* Largest MRU we allow */\r
550 #define PPP_DEFMRU                      296             /* Try for this */\r
551 #define PPP_MINMRU                      128             /* No MRUs below this */\r
552 \r
553 \r
554 #define MAXNAMELEN                      256     /* max length of hostname or name for auth */\r
555 #define MAXSECRETLEN                    256     /* max length of password or secret */\r
556 \r
557 #endif /* PPP_SUPPORT */\r
558 \r
559 /* checksum options - set to zero for hardware checksum support */\r
560 \r
561 #ifndef CHECKSUM_GEN_IP\r
562 #define CHECKSUM_GEN_IP                 1\r
563 #endif\r
564 \r
565 #ifndef CHECKSUM_GEN_UDP\r
566 #define CHECKSUM_GEN_UDP                1\r
567 #endif\r
568 \r
569 #ifndef CHECKSUM_GEN_TCP\r
570 #define CHECKSUM_GEN_TCP                1\r
571 #endif\r
572 \r
573 #ifndef CHECKSUM_CHECK_IP\r
574 #define CHECKSUM_CHECK_IP               1\r
575 #endif\r
576 \r
577 #ifndef CHECKSUM_CHECK_UDP\r
578 #define CHECKSUM_CHECK_UDP              1\r
579 #endif\r
580 \r
581 #ifndef CHECKSUM_CHECK_TCP\r
582 #define CHECKSUM_CHECK_TCP              1\r
583 #endif\r
584 \r
585 /* Debugging options all default to off */\r
586 \r
587 #ifndef DBG_TYPES_ON\r
588 #define DBG_TYPES_ON                    0\r
589 #endif\r
590 \r
591 #ifndef ETHARP_DEBUG\r
592 #define ETHARP_DEBUG                    DBG_OFF\r
593 #endif\r
594 \r
595 #ifndef NETIF_DEBUG\r
596 #define NETIF_DEBUG                     DBG_OFF\r
597 #endif\r
598 \r
599 #ifndef PBUF_DEBUG\r
600 #define PBUF_DEBUG                      DBG_OFF\r
601 #endif\r
602 \r
603 #ifndef API_LIB_DEBUG\r
604 #define API_LIB_DEBUG                   DBG_OFF\r
605 #endif\r
606 \r
607 #ifndef API_MSG_DEBUG\r
608 #define API_MSG_DEBUG                   DBG_OFF\r
609 #endif\r
610 \r
611 #ifndef SOCKETS_DEBUG\r
612 #define SOCKETS_DEBUG                   DBG_OFF\r
613 #endif\r
614 \r
615 #ifndef ICMP_DEBUG\r
616 #define ICMP_DEBUG                      DBG_OFF\r
617 #endif\r
618 \r
619 #ifndef INET_DEBUG\r
620 #define INET_DEBUG                      DBG_OFF\r
621 #endif\r
622 \r
623 #ifndef IP_DEBUG\r
624 #define IP_DEBUG                        DBG_OFF\r
625 #endif\r
626 \r
627 #ifndef IP_REASS_DEBUG\r
628 #define IP_REASS_DEBUG                  DBG_OFF\r
629 #endif\r
630 \r
631 #ifndef RAW_DEBUG\r
632 #define RAW_DEBUG                       DBG_OFF\r
633 #endif\r
634 \r
635 #ifndef MEM_DEBUG\r
636 #define MEM_DEBUG                       DBG_OFF\r
637 #endif\r
638 \r
639 #ifndef MEMP_DEBUG\r
640 #define MEMP_DEBUG                      DBG_OFF\r
641 #endif\r
642 \r
643 #ifndef SYS_DEBUG\r
644 #define SYS_DEBUG                       DBG_OFF\r
645 #endif\r
646 \r
647 #ifndef TCP_DEBUG\r
648 #define TCP_DEBUG                       DBG_OFF\r
649 #endif\r
650 \r
651 #ifndef TCP_INPUT_DEBUG\r
652 #define TCP_INPUT_DEBUG                 DBG_OFF\r
653 #endif\r
654 \r
655 #ifndef TCP_FR_DEBUG\r
656 #define TCP_FR_DEBUG                    DBG_OFF\r
657 #endif\r
658 \r
659 #ifndef TCP_RTO_DEBUG\r
660 #define TCP_RTO_DEBUG                   DBG_OFF\r
661 #endif\r
662 \r
663 #ifndef TCP_REXMIT_DEBUG\r
664 #define TCP_REXMIT_DEBUG                DBG_OFF\r
665 #endif\r
666 \r
667 #ifndef TCP_CWND_DEBUG\r
668 #define TCP_CWND_DEBUG                  DBG_OFF\r
669 #endif\r
670 \r
671 #ifndef TCP_WND_DEBUG\r
672 #define TCP_WND_DEBUG                   DBG_OFF\r
673 #endif\r
674 \r
675 #ifndef TCP_OUTPUT_DEBUG\r
676 #define TCP_OUTPUT_DEBUG                DBG_OFF\r
677 #endif\r
678 \r
679 #ifndef TCP_RST_DEBUG\r
680 #define TCP_RST_DEBUG                   DBG_OFF\r
681 #endif\r
682 \r
683 #ifndef TCP_QLEN_DEBUG\r
684 #define TCP_QLEN_DEBUG                  DBG_OFF\r
685 #endif\r
686 \r
687 #ifndef UDP_DEBUG\r
688 #define UDP_DEBUG                       DBG_OFF\r
689 #endif\r
690 \r
691 #ifndef TCPIP_DEBUG\r
692 #define TCPIP_DEBUG                     DBG_OFF\r
693 #endif\r
694 \r
695 #ifndef PPP_DEBUG\r
696 #define PPP_DEBUG                       DBG_OFF\r
697 #endif\r
698 \r
699 #ifndef SLIP_DEBUG\r
700 #define SLIP_DEBUG                      DBG_OFF\r
701 #endif\r
702 \r
703 #ifndef DHCP_DEBUG\r
704 #define DHCP_DEBUG                      DBG_OFF\r
705 #endif\r
706 \r
707 #ifndef SNMP_MSG_DEBUG\r
708 #define SNMP_MSG_DEBUG                  DBG_OFF\r
709 #endif\r
710 \r
711 #ifndef SNMP_MIB_DEBUG\r
712 #define SNMP_MIB_DEBUG                  DBG_OFF\r
713 #endif\r
714 \r
715 #ifndef DBG_MIN_LEVEL\r
716 #define DBG_MIN_LEVEL                   DBG_LEVEL_OFF\r
717 #endif\r
718 \r
719 #endif /* __LWIP_OPT_H__ */\r
720 \r
721 \r
722 \r