BeRTOS
|
00001 00038 /* 00039 * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 00040 * All rights reserved. 00041 * 00042 * Redistribution and use in source and binary forms, with or without modification, 00043 * are permitted provided that the following conditions are met: 00044 * 00045 * 1. Redistributions of source code must retain the above copyright notice, 00046 * this list of conditions and the following disclaimer. 00047 * 2. Redistributions in binary form must reproduce the above copyright notice, 00048 * this list of conditions and the following disclaimer in the documentation 00049 * and/or other materials provided with the distribution. 00050 * 3. The name of the author may not be used to endorse or promote products 00051 * derived from this software without specific prior written permission. 00052 * 00053 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 00054 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00055 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 00056 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00057 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00058 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00059 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00060 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 00061 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 00062 * OF SUCH DAMAGE. 00063 * 00064 * This file is part of the lwIP TCP/IP stack. 00065 * 00066 * Author: Adam Dunkels <adam@sics.se> 00067 * 00068 */ 00069 #ifndef CFG_LWIP_H 00070 #define CFG_LWIP_H 00071 00072 /* 00073 ----------------------------------------------- 00074 ---------- Platform specific locking ---------- 00075 ----------------------------------------------- 00076 */ 00077 00083 #ifndef SYS_LIGHTWEIGHT_PROT 00084 #define SYS_LIGHTWEIGHT_PROT 1 00085 #endif 00086 00091 #ifndef NO_SYS 00092 #define NO_SYS 0 00093 #endif 00094 00099 #ifndef MEMCPY 00100 #define MEMCPY(dst,src,len) memcpy(dst,src,len) 00101 #endif 00102 00107 #ifndef SMEMCPY 00108 #define SMEMCPY(dst,src,len) memcpy(dst,src,len) 00109 #endif 00110 00111 /* 00112 ------------------------------------ 00113 ---------- Memory options ---------- 00114 ------------------------------------ 00115 */ 00121 #ifndef MEM_LIBC_MALLOC 00122 #define MEM_LIBC_MALLOC 0 00123 #endif 00124 00130 #ifndef MEMP_MEM_MALLOC 00131 #define MEMP_MEM_MALLOC 0 00132 #endif 00133 00141 #ifndef MEM_ALIGNMENT 00142 #define MEM_ALIGNMENT 4 00143 #endif 00144 00153 #define MEM_SIZE 1600 00154 00165 #define MEMP_OVERFLOW_CHECK 0 00166 00172 #define MEMP_SANITY_CHECK 0 00173 00180 #ifndef MEM_USE_POOLS 00181 #define MEM_USE_POOLS 0 00182 #endif 00183 00188 #ifndef MEM_USE_POOLS_TRY_BIGGER_POOL 00189 #define MEM_USE_POOLS_TRY_BIGGER_POOL 0 00190 #endif 00191 00198 #ifndef MEMP_USE_CUSTOM_POOLS 00199 #define MEMP_USE_CUSTOM_POOLS 0 00200 #endif 00201 00220 #ifndef LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 00221 #define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 0 00222 #endif 00223 00224 /* 00225 ------------------------------------------------ 00226 ---------- Internal Memory Pool Sizes ---------- 00227 ------------------------------------------------ 00228 */ 00234 #ifndef MEMP_NUM_PBUF 00235 #define MEMP_NUM_PBUF 16 00236 #endif 00237 00242 #ifndef MEMP_NUM_RAW_PCB 00243 #define MEMP_NUM_RAW_PCB 4 00244 #endif 00245 00251 #ifndef MEMP_NUM_UDP_PCB 00252 #define MEMP_NUM_UDP_PCB 4 00253 #endif 00254 00259 #ifndef MEMP_NUM_TCP_PCB 00260 #define MEMP_NUM_TCP_PCB 5 00261 #endif 00262 00267 #ifndef MEMP_NUM_TCP_PCB_LISTEN 00268 #define MEMP_NUM_TCP_PCB_LISTEN 8 00269 #endif 00270 00275 #ifndef MEMP_NUM_TCP_SEG 00276 #define MEMP_NUM_TCP_SEG 16 00277 #endif 00278 00283 #ifndef MEMP_NUM_REASSDATA 00284 #define MEMP_NUM_REASSDATA 5 00285 #endif 00286 00293 #ifndef MEMP_NUM_ARP_QUEUE 00294 #define MEMP_NUM_ARP_QUEUE 30 00295 #endif 00296 00303 #ifndef MEMP_NUM_IGMP_GROUP 00304 #define MEMP_NUM_IGMP_GROUP 8 00305 #endif 00306 00311 #ifndef MEMP_NUM_SYS_TIMEOUT 00312 #define MEMP_NUM_SYS_TIMEOUT 8 00313 #endif 00314 00319 #ifndef MEMP_NUM_NETBUF 00320 #define MEMP_NUM_NETBUF 2 00321 #endif 00322 00327 #ifndef MEMP_NUM_NETCONN 00328 #define MEMP_NUM_NETCONN 4 00329 #endif 00330 00336 #ifndef MEMP_NUM_TCPIP_MSG_API 00337 #define MEMP_NUM_TCPIP_MSG_API 8 00338 #endif 00339 00345 #ifndef MEMP_NUM_TCPIP_MSG_INPKT 00346 #define MEMP_NUM_TCPIP_MSG_INPKT 8 00347 #endif 00348 00352 #ifndef PBUF_POOL_SIZE 00353 #define PBUF_POOL_SIZE 16 00354 #endif 00355 00356 /* 00357 --------------------------------- 00358 ---------- ARP options ---------- 00359 --------------------------------- 00360 */ 00364 #ifndef LWIP_ARP 00365 #define LWIP_ARP 1 00366 #endif 00367 00371 #ifndef ARP_TABLE_SIZE 00372 #define ARP_TABLE_SIZE 10 00373 #endif 00374 00379 #ifndef ARP_QUEUEING 00380 #define ARP_QUEUEING 1 00381 #endif 00382 00391 #ifndef ETHARP_TRUST_IP_MAC 00392 #define ETHARP_TRUST_IP_MAC 1 00393 #endif 00394 00401 #ifndef ETHARP_SUPPORT_VLAN 00402 #define ETHARP_SUPPORT_VLAN 0 00403 #endif 00404 00405 /* 00406 -------------------------------- 00407 ---------- IP options ---------- 00408 -------------------------------- 00409 */ 00415 #ifndef IP_FORWARD 00416 #define IP_FORWARD 0 00417 #endif 00418 00424 #ifndef IP_OPTIONS_ALLOWED 00425 #define IP_OPTIONS_ALLOWED 1 00426 #endif 00427 00433 #define IP_REASSEMBLY 1 00434 00440 #define IP_FRAG 1 00441 00447 #ifndef IP_REASS_MAXAGE 00448 #define IP_REASS_MAXAGE 3 00449 #endif 00450 00457 #ifndef IP_REASS_MAX_PBUFS 00458 #define IP_REASS_MAX_PBUFS 10 00459 #endif 00460 00466 #ifndef IP_FRAG_USES_STATIC_BUF 00467 #define IP_FRAG_USES_STATIC_BUF 1 00468 #endif 00469 00474 #if IP_FRAG_USES_STATIC_BUF && !defined(IP_FRAG_MAX_MTU) 00475 #define IP_FRAG_MAX_MTU 1500 00476 #endif 00477 00481 #ifndef IP_DEFAULT_TTL 00482 #define IP_DEFAULT_TTL 255 00483 #endif 00484 00490 #ifndef IP_SOF_BROADCAST 00491 #define IP_SOF_BROADCAST 0 00492 #endif 00493 00498 #ifndef IP_SOF_BROADCAST_RECV 00499 #define IP_SOF_BROADCAST_RECV 0 00500 #endif 00501 00502 /* 00503 ---------------------------------- 00504 ---------- ICMP options ---------- 00505 ---------------------------------- 00506 */ 00512 #define LWIP_ICMP 1 00513 00517 #ifndef ICMP_TTL 00518 #define ICMP_TTL (IP_DEFAULT_TTL) 00519 #endif 00520 00524 #ifndef LWIP_BROADCAST_PING 00525 #define LWIP_BROADCAST_PING 0 00526 #endif 00527 00531 #ifndef LWIP_MULTICAST_PING 00532 #define LWIP_MULTICAST_PING 0 00533 #endif 00534 00535 /* 00536 --------------------------------- 00537 ---------- RAW options ---------- 00538 --------------------------------- 00539 */ 00545 #define LWIP_RAW 1 00546 00550 #ifndef RAW_TTL 00551 #define RAW_TTL (IP_DEFAULT_TTL) 00552 #endif 00553 00554 /* 00555 ---------------------------------- 00556 ---------- DHCP options ---------- 00557 ---------------------------------- 00558 */ 00564 #define LWIP_DHCP 1 00565 00569 #ifndef DHCP_DOES_ARP_CHECK 00570 #define DHCP_DOES_ARP_CHECK ((LWIP_DHCP) && (LWIP_ARP)) 00571 #endif 00572 00573 /* 00574 ------------------------------------ 00575 ---------- AUTOIP options ---------- 00576 ------------------------------------ 00577 */ 00581 #ifndef LWIP_AUTOIP 00582 #define LWIP_AUTOIP 0 00583 #endif 00584 00589 #ifndef LWIP_DHCP_AUTOIP_COOP 00590 #define LWIP_DHCP_AUTOIP_COOP 0 00591 #endif 00592 00600 #ifndef LWIP_DHCP_AUTOIP_COOP_TRIES 00601 #define LWIP_DHCP_AUTOIP_COOP_TRIES 9 00602 #endif 00603 00604 /* 00605 ---------------------------------- 00606 ---------- SNMP options ---------- 00607 ---------------------------------- 00608 */ 00614 #define LWIP_SNMP 0 00615 00620 #ifndef SNMP_CONCURRENT_REQUESTS 00621 #define SNMP_CONCURRENT_REQUESTS 1 00622 #endif 00623 00628 #ifndef SNMP_TRAP_DESTINATIONS 00629 #define SNMP_TRAP_DESTINATIONS 1 00630 #endif 00631 00635 #ifndef SNMP_PRIVATE_MIB 00636 #define SNMP_PRIVATE_MIB 0 00637 #endif 00638 00644 #ifndef SNMP_SAFE_REQUESTS 00645 #define SNMP_SAFE_REQUESTS 1 00646 #endif 00647 00648 /* 00649 ---------------------------------- 00650 ---------- IGMP options ---------- 00651 ---------------------------------- 00652 */ 00658 #define LWIP_IGMP 0 00659 00660 /* 00661 ---------------------------------- 00662 ---------- DNS options ----------- 00663 ---------------------------------- 00664 */ 00670 #define LWIP_DNS 0 00671 00673 #ifndef DNS_TABLE_SIZE 00674 #define DNS_TABLE_SIZE 4 00675 #endif 00676 00678 #ifndef DNS_MAX_NAME_LENGTH 00679 #define DNS_MAX_NAME_LENGTH 256 00680 #endif 00681 00683 #ifndef DNS_MAX_SERVERS 00684 #define DNS_MAX_SERVERS 2 00685 #endif 00686 00688 #ifndef DNS_DOES_NAME_CHECK 00689 #define DNS_DOES_NAME_CHECK 1 00690 #endif 00691 00695 #ifndef DNS_USES_STATIC_BUF 00696 #define DNS_USES_STATIC_BUF 1 00697 #endif 00698 00700 #ifndef DNS_MSG_SIZE 00701 #define DNS_MSG_SIZE 512 00702 #endif 00703 00718 #ifndef DNS_LOCAL_HOSTLIST 00719 #define DNS_LOCAL_HOSTLIST 0 00720 #endif /* DNS_LOCAL_HOSTLIST */ 00721 00724 #ifndef DNS_LOCAL_HOSTLIST_IS_DYNAMIC 00725 #define DNS_LOCAL_HOSTLIST_IS_DYNAMIC 0 00726 #endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ 00727 00728 /* 00729 --------------------------------- 00730 ---------- UDP options ---------- 00731 --------------------------------- 00732 */ 00738 #define LWIP_UDP 1 00739 00743 #ifndef LWIP_UDPLITE 00744 #define LWIP_UDPLITE 0 00745 #endif 00746 00750 #ifndef UDP_TTL 00751 #define UDP_TTL (IP_DEFAULT_TTL) 00752 #endif 00753 00757 #ifndef LWIP_NETBUF_RECVINFO 00758 #define LWIP_NETBUF_RECVINFO 0 00759 #endif 00760 00761 /* 00762 --------------------------------- 00763 ---------- TCP options ---------- 00764 --------------------------------- 00765 */ 00771 #define LWIP_TCP 1 00772 00776 #ifndef TCP_TTL 00777 #define TCP_TTL (IP_DEFAULT_TTL) 00778 #endif 00779 00784 #ifndef TCP_WND 00785 #define TCP_WND (4 * TCP_MSS) 00786 #endif 00787 00791 #ifndef TCP_MAXRTX 00792 #define TCP_MAXRTX 12 00793 #endif 00794 00798 #ifndef TCP_SYNMAXRTX 00799 #define TCP_SYNMAXRTX 6 00800 #endif 00801 00806 #ifndef TCP_QUEUE_OOSEQ 00807 #define TCP_QUEUE_OOSEQ (LWIP_TCP) 00808 #endif 00809 00817 #ifndef TCP_MSS 00818 #define TCP_MSS 536 00819 #endif 00820 00829 #ifndef TCP_CALCULATE_EFF_SEND_MSS 00830 #define TCP_CALCULATE_EFF_SEND_MSS 1 00831 #endif 00832 00833 00837 #ifndef TCP_SND_BUF 00838 #define TCP_SND_BUF (2 * TCP_MSS) 00839 #endif 00840 00845 #ifndef TCP_SND_QUEUELEN 00846 #define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS)) 00847 #endif 00848 00854 #ifndef TCP_SNDLOWAT 00855 #define TCP_SNDLOWAT ((TCP_SND_BUF)/2) 00856 #endif 00857 00861 #ifndef TCP_LISTEN_BACKLOG 00862 #define TCP_LISTEN_BACKLOG 0 00863 #endif 00864 00870 #ifndef TCP_DEFAULT_LISTEN_BACKLOG 00871 #define TCP_DEFAULT_LISTEN_BACKLOG 0xff 00872 #endif 00873 00877 #ifndef LWIP_TCP_TIMESTAMPS 00878 #define LWIP_TCP_TIMESTAMPS 0 00879 #endif 00880 00885 #ifndef TCP_WND_UPDATE_THRESHOLD 00886 #define TCP_WND_UPDATE_THRESHOLD (TCP_WND / 4) 00887 #endif 00888 00889 /* 00890 ---------------------------------- 00891 ---------- Pbuf options ---------- 00892 ---------------------------------- 00893 */ 00899 #ifndef PBUF_LINK_HLEN 00900 #define PBUF_LINK_HLEN 14 00901 #endif 00902 00908 #ifndef PBUF_POOL_BUFSIZE 00909 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN) 00910 #endif 00911 00912 /* 00913 ------------------------------------------------ 00914 ---------- Network Interfaces options ---------- 00915 ------------------------------------------------ 00916 */ 00922 #define LWIP_NETIF_HOSTNAME 1 00923 00929 #define LWIP_NETIF_API 0 00930 00935 #ifndef LWIP_NETIF_STATUS_CALLBACK 00936 #define LWIP_NETIF_STATUS_CALLBACK 0 00937 #endif 00938 00943 #ifndef LWIP_NETIF_LINK_CALLBACK 00944 #define LWIP_NETIF_LINK_CALLBACK 0 00945 #endif 00946 00954 #ifndef LWIP_NETIF_HWADDRHINT 00955 #define LWIP_NETIF_HWADDRHINT 0 00956 #endif 00957 00962 #ifndef LWIP_NETIF_LOOPBACK 00963 #define LWIP_NETIF_LOOPBACK 0 00964 #endif 00965 00970 #ifndef LWIP_LOOPBACK_MAX_PBUFS 00971 #define LWIP_LOOPBACK_MAX_PBUFS 0 00972 #endif 00973 00987 #ifndef LWIP_NETIF_LOOPBACK_MULTITHREADING 00988 #define LWIP_NETIF_LOOPBACK_MULTITHREADING (!NO_SYS) 00989 #endif 00990 01000 #ifndef LWIP_NETIF_TX_SINGLE_PBUF 01001 #define LWIP_NETIF_TX_SINGLE_PBUF 0 01002 #endif /* LWIP_NETIF_TX_SINGLE_PBUF */ 01003 01004 /* 01005 ------------------------------------ 01006 ---------- LOOPIF options ---------- 01007 ------------------------------------ 01008 */ 01014 #define LWIP_HAVE_LOOPIF 0 01015 01016 /* 01017 ------------------------------------ 01018 ---------- SLIPIF options ---------- 01019 ------------------------------------ 01020 */ 01026 #define LWIP_HAVE_SLIPIF 0 01027 01028 /* 01029 ------------------------------------ 01030 ---------- Thread options ---------- 01031 ------------------------------------ 01032 */ 01036 #ifndef TCPIP_THREAD_NAME 01037 #define TCPIP_THREAD_NAME "tcpip_thread" 01038 #endif 01039 01045 #ifndef TCPIP_THREAD_STACKSIZE 01046 #define TCPIP_THREAD_STACKSIZE (KERN_MINSTACKSIZE * 3) 01047 #endif 01048 01054 #ifndef TCPIP_THREAD_PRIO 01055 #define TCPIP_THREAD_PRIO 0 01056 #endif 01057 01063 #ifndef TCPIP_MBOX_SIZE 01064 #define TCPIP_MBOX_SIZE 0 01065 #endif 01066 01070 #ifndef SLIPIF_THREAD_NAME 01071 #define SLIPIF_THREAD_NAME "slipif_loop" 01072 #endif 01073 01079 #ifndef SLIPIF_THREAD_STACKSIZE 01080 #define SLIPIF_THREAD_STACKSIZE 0 01081 #endif 01082 01088 #ifndef SLIPIF_THREAD_PRIO 01089 #define SLIPIF_THREAD_PRIO 1 01090 #endif 01091 01095 #ifndef PPP_THREAD_NAME 01096 #define PPP_THREAD_NAME "pppMain" 01097 #endif 01098 01104 #ifndef PPP_THREAD_STACKSIZE 01105 #define PPP_THREAD_STACKSIZE 0 01106 #endif 01107 01113 #ifndef PPP_THREAD_PRIO 01114 #define PPP_THREAD_PRIO 1 01115 #endif 01116 01120 #ifndef DEFAULT_THREAD_NAME 01121 #define DEFAULT_THREAD_NAME "lwIP" 01122 #endif 01123 01129 #ifndef DEFAULT_THREAD_STACKSIZE 01130 #define DEFAULT_THREAD_STACKSIZE (KERN_MINSTACKSIZE * 3) 01131 #endif 01132 01138 #ifndef DEFAULT_THREAD_PRIO 01139 #define DEFAULT_THREAD_PRIO 1 01140 #endif 01141 01147 #ifndef DEFAULT_RAW_RECVMBOX_SIZE 01148 #define DEFAULT_RAW_RECVMBOX_SIZE 0 01149 #endif 01150 01156 #ifndef DEFAULT_UDP_RECVMBOX_SIZE 01157 #define DEFAULT_UDP_RECVMBOX_SIZE 0 01158 #endif 01159 01165 #ifndef DEFAULT_TCP_RECVMBOX_SIZE 01166 #define DEFAULT_TCP_RECVMBOX_SIZE 0 01167 #endif 01168 01174 #ifndef DEFAULT_ACCEPTMBOX_SIZE 01175 #define DEFAULT_ACCEPTMBOX_SIZE 0 01176 #endif 01177 01178 /* 01179 ---------------------------------------------- 01180 ---------- Sequential layer options ---------- 01181 ---------------------------------------------- 01182 */ 01187 #ifndef LWIP_TCPIP_CORE_LOCKING 01188 #define LWIP_TCPIP_CORE_LOCKING 0 01189 #endif 01190 01196 #define LWIP_NETCONN 1 01197 01198 /* 01199 ------------------------------------ 01200 ---------- Socket options ---------- 01201 ------------------------------------ 01202 */ 01208 #define LWIP_SOCKET 1 01209 #if LWIP_SOCKET 01210 /* 01211 * The sockets.c file requires this macro to be defined to really 01212 * set errno on errors. 01213 */ 01214 #define ERRNO 01215 #endif 01216 01222 #ifndef LWIP_COMPAT_SOCKETS 01223 #define LWIP_COMPAT_SOCKETS 0 01224 #endif 01225 01231 #ifndef LWIP_POSIX_SOCKETS_IO_NAMES 01232 #define LWIP_POSIX_SOCKETS_IO_NAMES 0 01233 #endif 01234 01240 #ifndef LWIP_TCP_KEEPALIVE 01241 #define LWIP_TCP_KEEPALIVE 0 01242 #endif 01243 01247 #ifndef LWIP_SO_RCVTIMEO 01248 #define LWIP_SO_RCVTIMEO 0 01249 #endif 01250 01254 #ifndef LWIP_SO_RCVBUF 01255 #define LWIP_SO_RCVBUF 0 01256 #endif 01257 01261 #ifndef RECV_BUFSIZE_DEFAULT 01262 #define RECV_BUFSIZE_DEFAULT INT_MAX 01263 #endif 01264 01268 #ifndef SO_REUSE 01269 #define SO_REUSE 0 01270 #endif 01271 01272 /* 01273 ---------------------------------------- 01274 ---------- Statistics options ---------- 01275 ---------------------------------------- 01276 */ 01280 #ifndef LWIP_STATS 01281 #define LWIP_STATS 0 01282 #endif 01283 01284 #if LWIP_STATS 01285 01289 #ifndef LWIP_STATS_DISPLAY 01290 #define LWIP_STATS_DISPLAY 0 01291 #endif 01292 01296 #ifndef LINK_STATS 01297 #define LINK_STATS 1 01298 #endif 01299 01303 #ifndef ETHARP_STATS 01304 #define ETHARP_STATS (LWIP_ARP) 01305 #endif 01306 01310 #ifndef IP_STATS 01311 #define IP_STATS 1 01312 #endif 01313 01318 #ifndef IPFRAG_STATS 01319 #define IPFRAG_STATS (IP_REASSEMBLY || IP_FRAG) 01320 #endif 01321 01325 #ifndef ICMP_STATS 01326 #define ICMP_STATS 1 01327 #endif 01328 01332 #ifndef IGMP_STATS 01333 #define IGMP_STATS (LWIP_IGMP) 01334 #endif 01335 01340 #ifndef UDP_STATS 01341 #define UDP_STATS (LWIP_UDP) 01342 #endif 01343 01348 #ifndef TCP_STATS 01349 #define TCP_STATS (LWIP_TCP) 01350 #endif 01351 01355 #ifndef MEM_STATS 01356 #define MEM_STATS ((MEM_LIBC_MALLOC == 0) && (MEM_USE_POOLS == 0)) 01357 #endif 01358 01362 #ifndef MEMP_STATS 01363 #define MEMP_STATS (MEMP_MEM_MALLOC == 0) 01364 #endif 01365 01369 #ifndef SYS_STATS 01370 #define SYS_STATS (NO_SYS == 0) 01371 #endif 01372 01373 #else 01374 01375 #define LINK_STATS 0 01376 #define ETHARP_STATS 0 01377 #define IP_STATS 0 01378 #define IPFRAG_STATS 0 01379 #define ICMP_STATS 0 01380 #define IGMP_STATS 0 01381 #define UDP_STATS 0 01382 #define TCP_STATS 0 01383 #define MEM_STATS 0 01384 #define MEMP_STATS 0 01385 #define SYS_STATS 0 01386 #define LWIP_STATS_DISPLAY 0 01387 01388 #endif /* LWIP_STATS */ 01389 01390 /* 01391 --------------------------------- 01392 ---------- PPP options ---------- 01393 --------------------------------- 01394 */ 01400 #define PPP_SUPPORT 0 01401 01407 #define PPPOE_SUPPORT 0 01408 01412 #ifndef PPPOS_SUPPORT 01413 #define PPPOS_SUPPORT PPP_SUPPORT 01414 #endif 01415 01416 #if PPP_SUPPORT 01417 01421 #ifndef NUM_PPP 01422 #define NUM_PPP 1 01423 #endif 01424 01428 #ifndef PAP_SUPPORT 01429 #define PAP_SUPPORT 0 01430 #endif 01431 01435 #ifndef CHAP_SUPPORT 01436 #define CHAP_SUPPORT 0 01437 #endif 01438 01442 #ifndef MSCHAP_SUPPORT 01443 #define MSCHAP_SUPPORT 0 01444 #endif 01445 01449 #ifndef CBCP_SUPPORT 01450 #define CBCP_SUPPORT 0 01451 #endif 01452 01456 #ifndef CCP_SUPPORT 01457 #define CCP_SUPPORT 0 01458 #endif 01459 01463 #ifndef VJ_SUPPORT 01464 #define VJ_SUPPORT 0 01465 #endif 01466 01470 #ifndef MD5_SUPPORT 01471 #define MD5_SUPPORT 0 01472 #endif 01473 01474 /* 01475 * Timeouts 01476 */ 01477 #ifndef FSM_DEFTIMEOUT 01478 #define FSM_DEFTIMEOUT 6 /* Timeout time in seconds */ 01479 #endif 01480 01481 #ifndef FSM_DEFMAXTERMREQS 01482 #define FSM_DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */ 01483 #endif 01484 01485 #ifndef FSM_DEFMAXCONFREQS 01486 #define FSM_DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */ 01487 #endif 01488 01489 #ifndef FSM_DEFMAXNAKLOOPS 01490 #define FSM_DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */ 01491 #endif 01492 01493 #ifndef UPAP_DEFTIMEOUT 01494 #define UPAP_DEFTIMEOUT 6 /* Timeout (seconds) for retransmitting req */ 01495 #endif 01496 01497 #ifndef UPAP_DEFREQTIME 01498 #define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */ 01499 #endif 01500 01501 #ifndef CHAP_DEFTIMEOUT 01502 #define CHAP_DEFTIMEOUT 6 /* Timeout time in seconds */ 01503 #endif 01504 01505 #ifndef CHAP_DEFTRANSMITS 01506 #define CHAP_DEFTRANSMITS 10 /* max # times to send challenge */ 01507 #endif 01508 01509 /* Interval in seconds between keepalive echo requests, 0 to disable. */ 01510 #ifndef LCP_ECHOINTERVAL 01511 #define LCP_ECHOINTERVAL 0 01512 #endif 01513 01514 /* Number of unanswered echo requests before failure. */ 01515 #ifndef LCP_MAXECHOFAILS 01516 #define LCP_MAXECHOFAILS 3 01517 #endif 01518 01519 /* Max Xmit idle time (in jiffies) before resend flag char. */ 01520 #ifndef PPP_MAXIDLEFLAG 01521 #define PPP_MAXIDLEFLAG 100 01522 #endif 01523 01524 /* 01525 * Packet sizes 01526 * 01527 * Note - lcp shouldn't be allowed to negotiate stuff outside these 01528 * limits. See lcp.h in the pppd directory. 01529 * (XXX - these constants should simply be shared by lcp.c instead 01530 * of living in lcp.h) 01531 */ 01532 #define PPP_MTU 1500 /* Default MTU (size of Info field) */ 01533 #ifndef PPP_MAXMTU 01534 /* #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN) */ 01535 #define PPP_MAXMTU 1500 /* Largest MTU we allow */ 01536 #endif 01537 #define PPP_MINMTU 64 01538 #define PPP_MRU 1500 /* default MRU = max length of info field */ 01539 #define PPP_MAXMRU 1500 /* Largest MRU we allow */ 01540 #ifndef PPP_DEFMRU 01541 #define PPP_DEFMRU 296 /* Try for this */ 01542 #endif 01543 #define PPP_MINMRU 128 /* No MRUs below this */ 01544 01545 #ifndef MAXNAMELEN 01546 #define MAXNAMELEN 256 /* max length of hostname or name for auth */ 01547 #endif 01548 #ifndef MAXSECRETLEN 01549 #define MAXSECRETLEN 256 /* max length of password or secret */ 01550 #endif 01551 01552 #endif /* PPP_SUPPORT */ 01553 01554 /* 01555 -------------------------------------- 01556 ---------- Checksum options ---------- 01557 -------------------------------------- 01558 */ 01562 #ifndef CHECKSUM_GEN_IP 01563 #define CHECKSUM_GEN_IP 1 01564 #endif 01565 01569 #ifndef CHECKSUM_GEN_UDP 01570 #define CHECKSUM_GEN_UDP 1 01571 #endif 01572 01576 #ifndef CHECKSUM_GEN_TCP 01577 #define CHECKSUM_GEN_TCP 1 01578 #endif 01579 01583 #ifndef CHECKSUM_CHECK_IP 01584 #define CHECKSUM_CHECK_IP 1 01585 #endif 01586 01590 #ifndef CHECKSUM_CHECK_UDP 01591 #define CHECKSUM_CHECK_UDP 1 01592 #endif 01593 01597 #ifndef CHECKSUM_CHECK_TCP 01598 #define CHECKSUM_CHECK_TCP 1 01599 #endif 01600 01601 /* 01602 --------------------------------------- 01603 ---------- Debugging options ---------- 01604 --------------------------------------- 01605 */ 01606 01607 #ifdef _DEBUG 01608 #define LWIP_DEBUG 01609 #endif 01610 01616 #ifndef LWIP_DBG_MIN_LEVEL 01617 #define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL 01618 #endif 01619 01624 #ifndef LWIP_DBG_TYPES_ON 01625 #define LWIP_DBG_TYPES_ON LWIP_DBG_ON 01626 #endif 01627 01631 #ifndef ETHARP_DEBUG 01632 #define ETHARP_DEBUG LWIP_DBG_OFF 01633 #endif 01634 01638 #ifndef NETIF_DEBUG 01639 #define NETIF_DEBUG LWIP_DBG_OFF 01640 #endif 01641 01645 #ifndef PBUF_DEBUG 01646 #define PBUF_DEBUG LWIP_DBG_OFF 01647 #endif 01648 01652 #ifndef API_LIB_DEBUG 01653 #define API_LIB_DEBUG LWIP_DBG_OFF 01654 #endif 01655 01659 #ifndef API_MSG_DEBUG 01660 #define API_MSG_DEBUG LWIP_DBG_OFF 01661 #endif 01662 01666 #ifndef SOCKETS_DEBUG 01667 #define SOCKETS_DEBUG LWIP_DBG_OFF 01668 #endif 01669 01673 #ifndef ICMP_DEBUG 01674 #define ICMP_DEBUG LWIP_DBG_OFF 01675 #endif 01676 01680 #ifndef IGMP_DEBUG 01681 #define IGMP_DEBUG LWIP_DBG_OFF 01682 #endif 01683 01687 #ifndef INET_DEBUG 01688 #define INET_DEBUG LWIP_DBG_OFF 01689 #endif 01690 01694 #ifndef IP_DEBUG 01695 #define IP_DEBUG LWIP_DBG_OFF 01696 #endif 01697 01701 #ifndef IP_REASS_DEBUG 01702 #define IP_REASS_DEBUG LWIP_DBG_OFF 01703 #endif 01704 01708 #ifndef RAW_DEBUG 01709 #define RAW_DEBUG LWIP_DBG_OFF 01710 #endif 01711 01715 #ifndef MEM_DEBUG 01716 #define MEM_DEBUG LWIP_DBG_OFF 01717 #endif 01718 01722 #ifndef MEMP_DEBUG 01723 #define MEMP_DEBUG LWIP_DBG_OFF 01724 #endif 01725 01729 #ifndef SYS_DEBUG 01730 #define SYS_DEBUG LWIP_DBG_OFF 01731 #endif 01732 01736 #ifndef TCP_DEBUG 01737 #define TCP_DEBUG LWIP_DBG_OFF 01738 #endif 01739 01743 #ifndef TCP_INPUT_DEBUG 01744 #define TCP_INPUT_DEBUG LWIP_DBG_OFF 01745 #endif 01746 01750 #ifndef TCP_FR_DEBUG 01751 #define TCP_FR_DEBUG LWIP_DBG_OFF 01752 #endif 01753 01758 #ifndef TCP_RTO_DEBUG 01759 #define TCP_RTO_DEBUG LWIP_DBG_OFF 01760 #endif 01761 01765 #ifndef TCP_CWND_DEBUG 01766 #define TCP_CWND_DEBUG LWIP_DBG_OFF 01767 #endif 01768 01772 #ifndef TCP_WND_DEBUG 01773 #define TCP_WND_DEBUG LWIP_DBG_OFF 01774 #endif 01775 01779 #ifndef TCP_OUTPUT_DEBUG 01780 #define TCP_OUTPUT_DEBUG LWIP_DBG_OFF 01781 #endif 01782 01786 #ifndef TCP_RST_DEBUG 01787 #define TCP_RST_DEBUG LWIP_DBG_OFF 01788 #endif 01789 01793 #ifndef TCP_QLEN_DEBUG 01794 #define TCP_QLEN_DEBUG LWIP_DBG_OFF 01795 #endif 01796 01800 #ifndef UDP_DEBUG 01801 #define UDP_DEBUG LWIP_DBG_OFF 01802 #endif 01803 01807 #ifndef TCPIP_DEBUG 01808 #define TCPIP_DEBUG LWIP_DBG_OFF 01809 #endif 01810 01814 #ifndef PPP_DEBUG 01815 #define PPP_DEBUG LWIP_DBG_OFF 01816 #endif 01817 01821 #ifndef SLIP_DEBUG 01822 #define SLIP_DEBUG LWIP_DBG_OFF 01823 #endif 01824 01828 #ifndef DHCP_DEBUG 01829 #define DHCP_DEBUG LWIP_DBG_OFF 01830 #endif 01831 01835 #ifndef AUTOIP_DEBUG 01836 #define AUTOIP_DEBUG LWIP_DBG_OFF 01837 #endif 01838 01842 #ifndef SNMP_MSG_DEBUG 01843 #define SNMP_MSG_DEBUG LWIP_DBG_OFF 01844 #endif 01845 01849 #ifndef SNMP_MIB_DEBUG 01850 #define SNMP_MIB_DEBUG LWIP_DBG_OFF 01851 #endif 01852 01856 #ifndef DNS_DEBUG 01857 #define DNS_DEBUG LWIP_DBG_OFF 01858 #endif 01859 01860 /* Custom definitions: !!!DO NOT CHANGE THIS SECTION!!! */ 01861 #define LWIP_TIMEVAL_PRIVATE 0 01862 01863 #endif /* CFG_LWIP_H */