ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

opt.h
Go to the documentation of this file.
00001 
00007 /*
00008  * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
00009  * All rights reserved. 
00010  * 
00011  * Redistribution and use in source and binary forms, with or without modification, 
00012  * are permitted provided that the following conditions are met:
00013  *
00014  * 1. Redistributions of source code must retain the above copyright notice,
00015  *    this list of conditions and the following disclaimer.
00016  * 2. Redistributions in binary form must reproduce the above copyright notice,
00017  *    this list of conditions and the following disclaimer in the documentation
00018  *    and/or other materials provided with the distribution.
00019  * 3. The name of the author may not be used to endorse or promote products
00020  *    derived from this software without specific prior written permission. 
00021  *
00022  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 
00023  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
00024  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 
00025  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
00026  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 
00027  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
00028  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
00029  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
00030  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
00031  * OF SUCH DAMAGE.
00032  *
00033  * This file is part of the lwIP TCP/IP stack.
00034  * 
00035  * Author: Adam Dunkels <adam@sics.se>
00036  *
00037  */
00038 #ifndef __LWIP_OPT_H__
00039 #define __LWIP_OPT_H__
00040 
00041 /*
00042  * Include user defined options first. Anything not defined in these files
00043  * will be set to standard values. Override anything you dont like!
00044  */
00045 #include "lwipopts.h"
00046 #include "lwip/debug.h"
00047 
00048 /*
00049    -----------------------------------------------
00050    ---------- Platform specific locking ----------
00051    -----------------------------------------------
00052 */
00053 
00059 #ifndef SYS_LIGHTWEIGHT_PROT
00060 #define SYS_LIGHTWEIGHT_PROT            0
00061 #endif
00062 
00067 #ifndef NO_SYS
00068 #define NO_SYS                          0
00069 #endif
00070 
00075 #ifndef NO_SYS_NO_TIMERS
00076 #define NO_SYS_NO_TIMERS                0
00077 #endif
00078 
00083 #ifndef MEMCPY
00084 #define MEMCPY(dst,src,len)             memcpy(dst,src,len)
00085 #endif
00086 
00091 #ifndef SMEMCPY
00092 #define SMEMCPY(dst,src,len)            memcpy(dst,src,len)
00093 #endif
00094 
00095 /*
00096    ------------------------------------
00097    ---------- Memory options ----------
00098    ------------------------------------
00099 */
00105 #ifndef MEM_LIBC_MALLOC
00106 #define MEM_LIBC_MALLOC                 0
00107 #endif
00108 
00114 #ifndef MEMP_MEM_MALLOC
00115 #define MEMP_MEM_MALLOC                 0
00116 #endif
00117 
00123 #ifndef MEM_ALIGNMENT
00124 #define MEM_ALIGNMENT                   1
00125 #endif
00126 
00131 #ifndef MEM_SIZE
00132 #define MEM_SIZE                        1600
00133 #endif
00134 
00140 #ifndef MEMP_SEPARATE_POOLS
00141 #define MEMP_SEPARATE_POOLS             0
00142 #endif
00143 
00153 #ifndef MEMP_OVERFLOW_CHECK
00154 #define MEMP_OVERFLOW_CHECK             0
00155 #endif
00156 
00161 #ifndef MEMP_SANITY_CHECK
00162 #define MEMP_SANITY_CHECK               0
00163 #endif
00164 
00171 #ifndef MEM_USE_POOLS
00172 #define MEM_USE_POOLS                   0
00173 #endif
00174 
00179 #ifndef MEM_USE_POOLS_TRY_BIGGER_POOL
00180 #define MEM_USE_POOLS_TRY_BIGGER_POOL   0
00181 #endif
00182 
00189 #ifndef MEMP_USE_CUSTOM_POOLS
00190 #define MEMP_USE_CUSTOM_POOLS           0
00191 #endif
00192 
00211 #ifndef LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
00212 #define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 0
00213 #endif
00214 
00215 /*
00216    ------------------------------------------------
00217    ---------- Internal Memory Pool Sizes ----------
00218    ------------------------------------------------
00219 */
00225 #ifndef MEMP_NUM_PBUF
00226 #define MEMP_NUM_PBUF                   16
00227 #endif
00228 
00233 #ifndef MEMP_NUM_RAW_PCB
00234 #define MEMP_NUM_RAW_PCB                4
00235 #endif
00236 
00242 #ifndef MEMP_NUM_UDP_PCB
00243 #define MEMP_NUM_UDP_PCB                4
00244 #endif
00245 
00250 #ifndef MEMP_NUM_TCP_PCB
00251 #define MEMP_NUM_TCP_PCB                5
00252 #endif
00253 
00258 #ifndef MEMP_NUM_TCP_PCB_LISTEN
00259 #define MEMP_NUM_TCP_PCB_LISTEN         8
00260 #endif
00261 
00266 #ifndef MEMP_NUM_TCP_SEG
00267 #define MEMP_NUM_TCP_SEG                16
00268 #endif
00269 
00274 #ifndef MEMP_NUM_REASSDATA
00275 #define MEMP_NUM_REASSDATA              5
00276 #endif
00277 
00285 #ifndef MEMP_NUM_FRAG_PBUF
00286 #define MEMP_NUM_FRAG_PBUF              15
00287 #endif
00288 
00295 #ifndef MEMP_NUM_ARP_QUEUE
00296 #define MEMP_NUM_ARP_QUEUE              30
00297 #endif
00298 
00305 #ifndef MEMP_NUM_IGMP_GROUP
00306 #define MEMP_NUM_IGMP_GROUP             8
00307 #endif
00308 
00313 #ifndef MEMP_NUM_SYS_TIMEOUT
00314 #define MEMP_NUM_SYS_TIMEOUT            3
00315 #endif
00316 
00321 #ifndef MEMP_NUM_NETBUF
00322 #define MEMP_NUM_NETBUF                 2
00323 #endif
00324 
00329 #ifndef MEMP_NUM_NETCONN
00330 #define MEMP_NUM_NETCONN                4
00331 #endif
00332 
00338 #ifndef MEMP_NUM_TCPIP_MSG_API
00339 #define MEMP_NUM_TCPIP_MSG_API          8
00340 #endif
00341 
00347 #ifndef MEMP_NUM_TCPIP_MSG_INPKT
00348 #define MEMP_NUM_TCPIP_MSG_INPKT        8
00349 #endif
00350 
00354 #ifndef MEMP_NUM_SNMP_NODE
00355 #define MEMP_NUM_SNMP_NODE              50
00356 #endif
00357 
00362 #ifndef MEMP_NUM_SNMP_ROOTNODE
00363 #define MEMP_NUM_SNMP_ROOTNODE          30
00364 #endif
00365 
00371 #ifndef MEMP_NUM_SNMP_VARBIND
00372 #define MEMP_NUM_SNMP_VARBIND           2
00373 #endif
00374 
00380 #ifndef MEMP_NUM_SNMP_VALUE
00381 #define MEMP_NUM_SNMP_VALUE             3
00382 #endif
00383 
00388 #ifndef MEMP_NUM_NETDB
00389 #define MEMP_NUM_NETDB                  1
00390 #endif
00391 
00396 #ifndef MEMP_NUM_LOCALHOSTLIST
00397 #define MEMP_NUM_LOCALHOSTLIST          1
00398 #endif
00399 
00404 #ifndef MEMP_NUM_PPPOE_INTERFACES
00405 #define MEMP_NUM_PPPOE_INTERFACES       1
00406 #endif
00407 
00411 #ifndef PBUF_POOL_SIZE
00412 #define PBUF_POOL_SIZE                  16
00413 #endif
00414 
00415 /*
00416    ---------------------------------
00417    ---------- ARP options ----------
00418    ---------------------------------
00419 */
00423 #ifndef LWIP_ARP
00424 #define LWIP_ARP                        1
00425 #endif
00426 
00430 #ifndef ARP_TABLE_SIZE
00431 #define ARP_TABLE_SIZE                  10
00432 #endif
00433 
00441 #ifndef ARP_QUEUEING
00442 #define ARP_QUEUEING                    0
00443 #endif
00444 
00455 #ifndef ETHARP_TRUST_IP_MAC
00456 #define ETHARP_TRUST_IP_MAC             0
00457 #endif
00458 
00465 #ifndef ETHARP_SUPPORT_VLAN
00466 #define ETHARP_SUPPORT_VLAN             0
00467 #endif
00468 
00472 #ifndef LWIP_ETHERNET
00473 #define LWIP_ETHERNET                   (LWIP_ARP || PPPOE_SUPPORT)
00474 #endif
00475 
00481 #ifndef ETH_PAD_SIZE
00482 #define ETH_PAD_SIZE                    0
00483 #endif
00484 
00488 #ifndef ETHARP_SUPPORT_STATIC_ENTRIES
00489 #define ETHARP_SUPPORT_STATIC_ENTRIES   0
00490 #endif
00491 
00492 
00493 /*
00494    --------------------------------
00495    ---------- IP options ----------
00496    --------------------------------
00497 */
00503 #ifndef IP_FORWARD
00504 #define IP_FORWARD                      0
00505 #endif
00506 
00512 #ifndef IP_OPTIONS_ALLOWED
00513 #define IP_OPTIONS_ALLOWED              1
00514 #endif
00515 
00521 #ifndef IP_REASSEMBLY
00522 #define IP_REASSEMBLY                   1
00523 #endif
00524 
00530 #ifndef IP_FRAG
00531 #define IP_FRAG                         1
00532 #endif
00533 
00539 #ifndef IP_REASS_MAXAGE
00540 #define IP_REASS_MAXAGE                 3
00541 #endif
00542 
00549 #ifndef IP_REASS_MAX_PBUFS
00550 #define IP_REASS_MAX_PBUFS              10
00551 #endif
00552 
00560 #ifndef IP_FRAG_USES_STATIC_BUF
00561 #define IP_FRAG_USES_STATIC_BUF         0
00562 #endif
00563 
00568 #if IP_FRAG_USES_STATIC_BUF && !defined(IP_FRAG_MAX_MTU)
00569 #define IP_FRAG_MAX_MTU                 1500
00570 #endif
00571 
00575 #ifndef IP_DEFAULT_TTL
00576 #define IP_DEFAULT_TTL                  255
00577 #endif
00578 
00584 #ifndef IP_SOF_BROADCAST
00585 #define IP_SOF_BROADCAST                0
00586 #endif
00587 
00592 #ifndef IP_SOF_BROADCAST_RECV
00593 #define IP_SOF_BROADCAST_RECV           0
00594 #endif
00595 
00596 /*
00597    ----------------------------------
00598    ---------- ICMP options ----------
00599    ----------------------------------
00600 */
00605 #ifndef LWIP_ICMP
00606 #define LWIP_ICMP                       1
00607 #endif
00608 
00612 #ifndef ICMP_TTL
00613 #define ICMP_TTL                       (IP_DEFAULT_TTL)
00614 #endif
00615 
00619 #ifndef LWIP_BROADCAST_PING
00620 #define LWIP_BROADCAST_PING             0
00621 #endif
00622 
00626 #ifndef LWIP_MULTICAST_PING
00627 #define LWIP_MULTICAST_PING             0
00628 #endif
00629 
00630 /*
00631    ---------------------------------
00632    ---------- RAW options ----------
00633    ---------------------------------
00634 */
00638 #ifndef LWIP_RAW
00639 #define LWIP_RAW                        1
00640 #endif
00641 
00645 #ifndef RAW_TTL
00646 #define RAW_TTL                        (IP_DEFAULT_TTL)
00647 #endif
00648 
00649 /*
00650    ----------------------------------
00651    ---------- DHCP options ----------
00652    ----------------------------------
00653 */
00657 #ifndef LWIP_DHCP
00658 #define LWIP_DHCP                       0
00659 #endif
00660 
00664 #ifndef DHCP_DOES_ARP_CHECK
00665 #define DHCP_DOES_ARP_CHECK             ((LWIP_DHCP) && (LWIP_ARP))
00666 #endif
00667 
00668 /*
00669    ------------------------------------
00670    ---------- AUTOIP options ----------
00671    ------------------------------------
00672 */
00676 #ifndef LWIP_AUTOIP
00677 #define LWIP_AUTOIP                     0
00678 #endif
00679 
00684 #ifndef LWIP_DHCP_AUTOIP_COOP
00685 #define LWIP_DHCP_AUTOIP_COOP           0
00686 #endif
00687 
00695 #ifndef LWIP_DHCP_AUTOIP_COOP_TRIES
00696 #define LWIP_DHCP_AUTOIP_COOP_TRIES     9
00697 #endif
00698 
00699 /*
00700    ----------------------------------
00701    ---------- SNMP options ----------
00702    ----------------------------------
00703 */
00708 #ifndef LWIP_SNMP
00709 #define LWIP_SNMP                       0
00710 #endif
00711 
00717 #ifndef SNMP_CONCURRENT_REQUESTS
00718 #define SNMP_CONCURRENT_REQUESTS        1
00719 #endif
00720 
00725 #ifndef SNMP_TRAP_DESTINATIONS
00726 #define SNMP_TRAP_DESTINATIONS          1
00727 #endif
00728 
00734 #ifndef SNMP_PRIVATE_MIB
00735 #define SNMP_PRIVATE_MIB                0
00736 #endif
00737 
00743 #ifndef SNMP_SAFE_REQUESTS
00744 #define SNMP_SAFE_REQUESTS              1
00745 #endif
00746 
00751 #ifndef SNMP_MAX_OCTET_STRING_LEN
00752 #define SNMP_MAX_OCTET_STRING_LEN       127
00753 #endif
00754 
00760 #ifndef SNMP_MAX_TREE_DEPTH
00761 #define SNMP_MAX_TREE_DEPTH             15
00762 #endif
00763 
00768 #ifndef SNMP_MAX_VALUE_SIZE
00769 #define SNMP_MAX_VALUE_SIZE             LWIP_MAX((SNMP_MAX_OCTET_STRING_LEN)+1, sizeof(s32_t)*(SNMP_MAX_TREE_DEPTH))
00770 #endif
00771 
00772 /*
00773    ----------------------------------
00774    ---------- IGMP options ----------
00775    ----------------------------------
00776 */
00780 #ifndef LWIP_IGMP
00781 #define LWIP_IGMP                       0
00782 #endif
00783 
00784 /*
00785    ----------------------------------
00786    ---------- DNS options -----------
00787    ----------------------------------
00788 */
00793 #ifndef LWIP_DNS
00794 #define LWIP_DNS                        0
00795 #endif
00796 
00798 #ifndef DNS_TABLE_SIZE
00799 #define DNS_TABLE_SIZE                  4
00800 #endif
00801 
00803 #ifndef DNS_MAX_NAME_LENGTH
00804 #define DNS_MAX_NAME_LENGTH             256
00805 #endif
00806 
00808 #ifndef DNS_MAX_SERVERS
00809 #define DNS_MAX_SERVERS                 2
00810 #endif
00811 
00813 #ifndef DNS_DOES_NAME_CHECK
00814 #define DNS_DOES_NAME_CHECK             1
00815 #endif
00816 
00818 #ifndef DNS_MSG_SIZE
00819 #define DNS_MSG_SIZE                    512
00820 #endif
00821 
00832 #ifndef DNS_LOCAL_HOSTLIST
00833 #define DNS_LOCAL_HOSTLIST              0
00834 #endif /* DNS_LOCAL_HOSTLIST */
00835 
00838 #ifndef DNS_LOCAL_HOSTLIST_IS_DYNAMIC
00839 #define DNS_LOCAL_HOSTLIST_IS_DYNAMIC   0
00840 #endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */
00841 
00842 /*
00843    ---------------------------------
00844    ---------- UDP options ----------
00845    ---------------------------------
00846 */
00850 #ifndef LWIP_UDP
00851 #define LWIP_UDP                        1
00852 #endif
00853 
00857 #ifndef LWIP_UDPLITE
00858 #define LWIP_UDPLITE                    0
00859 #endif
00860 
00864 #ifndef UDP_TTL
00865 #define UDP_TTL                         (IP_DEFAULT_TTL)
00866 #endif
00867 
00871 #ifndef LWIP_NETBUF_RECVINFO
00872 #define LWIP_NETBUF_RECVINFO            0
00873 #endif
00874 
00875 /*
00876    ---------------------------------
00877    ---------- TCP options ----------
00878    ---------------------------------
00879 */
00883 #ifndef LWIP_TCP
00884 #define LWIP_TCP                        1
00885 #endif
00886 
00890 #ifndef TCP_TTL
00891 #define TCP_TTL                         (IP_DEFAULT_TTL)
00892 #endif
00893 
00898 #ifndef TCP_WND
00899 #define TCP_WND                         (4 * TCP_MSS)
00900 #endif 
00901 
00905 #ifndef TCP_MAXRTX
00906 #define TCP_MAXRTX                      12
00907 #endif
00908 
00912 #ifndef TCP_SYNMAXRTX
00913 #define TCP_SYNMAXRTX                   6
00914 #endif
00915 
00920 #ifndef TCP_QUEUE_OOSEQ
00921 #define TCP_QUEUE_OOSEQ                 (LWIP_TCP)
00922 #endif
00923 
00931 #ifndef TCP_MSS
00932 #define TCP_MSS                         536
00933 #endif
00934 
00943 #ifndef TCP_CALCULATE_EFF_SEND_MSS
00944 #define TCP_CALCULATE_EFF_SEND_MSS      1
00945 #endif
00946 
00947 
00951 #ifndef TCP_SND_BUF
00952 #define TCP_SND_BUF                     256
00953 #endif
00954 
00959 #ifndef TCP_SND_QUEUELEN
00960 #define TCP_SND_QUEUELEN                ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
00961 #endif
00962 
00968 #ifndef TCP_SNDLOWAT
00969 #define TCP_SNDLOWAT                    ((TCP_SND_BUF)/2)
00970 #endif
00971 
00977 #ifndef TCP_SNDQUEUELOWAT
00978 #define TCP_SNDQUEUELOWAT               ((TCP_SND_QUEUELEN)/2)
00979 #endif
00980 
00984 #ifndef TCP_LISTEN_BACKLOG
00985 #define TCP_LISTEN_BACKLOG              0
00986 #endif
00987 
00993 #ifndef TCP_DEFAULT_LISTEN_BACKLOG
00994 #define TCP_DEFAULT_LISTEN_BACKLOG      0xff
00995 #endif
00996 
01011 #ifndef TCP_OVERSIZE
01012 #define TCP_OVERSIZE                    TCP_MSS
01013 #endif
01014 
01018 #ifndef LWIP_TCP_TIMESTAMPS
01019 #define LWIP_TCP_TIMESTAMPS             0
01020 #endif
01021 
01026 #ifndef TCP_WND_UPDATE_THRESHOLD
01027 #define TCP_WND_UPDATE_THRESHOLD   (TCP_WND / 4)
01028 #endif
01029 
01037 #ifndef LWIP_EVENT_API
01038 #define LWIP_EVENT_API                  0
01039 #define LWIP_CALLBACK_API               1
01040 #else 
01041 #define LWIP_EVENT_API                  1
01042 #define LWIP_CALLBACK_API               0
01043 #endif
01044 
01045 
01046 /*
01047    ----------------------------------
01048    ---------- Pbuf options ----------
01049    ----------------------------------
01050 */
01056 #ifndef PBUF_LINK_HLEN
01057 #define PBUF_LINK_HLEN                  (14 + ETH_PAD_SIZE)
01058 #endif
01059 
01065 #ifndef PBUF_POOL_BUFSIZE
01066 #define PBUF_POOL_BUFSIZE               LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)
01067 #endif
01068 
01069 /*
01070    ------------------------------------------------
01071    ---------- Network Interfaces options ----------
01072    ------------------------------------------------
01073 */
01078 #ifndef LWIP_NETIF_HOSTNAME
01079 #define LWIP_NETIF_HOSTNAME             0
01080 #endif
01081 
01085 #ifndef LWIP_NETIF_API
01086 #define LWIP_NETIF_API                  0
01087 #endif
01088 
01093 #ifndef LWIP_NETIF_STATUS_CALLBACK
01094 #define LWIP_NETIF_STATUS_CALLBACK      0
01095 #endif
01096 
01101 #ifndef LWIP_NETIF_LINK_CALLBACK
01102 #define LWIP_NETIF_LINK_CALLBACK        0
01103 #endif
01104 
01112 #ifndef LWIP_NETIF_HWADDRHINT
01113 #define LWIP_NETIF_HWADDRHINT           0
01114 #endif
01115 
01120 #ifndef LWIP_NETIF_LOOPBACK
01121 #define LWIP_NETIF_LOOPBACK             0
01122 #endif
01123 
01128 #ifndef LWIP_LOOPBACK_MAX_PBUFS
01129 #define LWIP_LOOPBACK_MAX_PBUFS         0
01130 #endif
01131 
01145 #ifndef LWIP_NETIF_LOOPBACK_MULTITHREADING
01146 #define LWIP_NETIF_LOOPBACK_MULTITHREADING    (!NO_SYS)
01147 #endif
01148 
01158 #ifndef LWIP_NETIF_TX_SINGLE_PBUF
01159 #define LWIP_NETIF_TX_SINGLE_PBUF             0
01160 #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
01161 
01162 /*
01163    ------------------------------------
01164    ---------- LOOPIF options ----------
01165    ------------------------------------
01166 */
01170 #ifndef LWIP_HAVE_LOOPIF
01171 #define LWIP_HAVE_LOOPIF                0
01172 #endif
01173 
01174 /*
01175    ------------------------------------
01176    ---------- SLIPIF options ----------
01177    ------------------------------------
01178 */
01182 #ifndef LWIP_HAVE_SLIPIF
01183 #define LWIP_HAVE_SLIPIF                0
01184 #endif
01185 
01186 /*
01187    ------------------------------------
01188    ---------- Thread options ----------
01189    ------------------------------------
01190 */
01194 #ifndef TCPIP_THREAD_NAME
01195 #define TCPIP_THREAD_NAME              "tcpip_thread"
01196 #endif
01197 
01203 #ifndef TCPIP_THREAD_STACKSIZE
01204 #define TCPIP_THREAD_STACKSIZE          0
01205 #endif
01206 
01212 #ifndef TCPIP_THREAD_PRIO
01213 #define TCPIP_THREAD_PRIO               1
01214 #endif
01215 
01221 #ifndef TCPIP_MBOX_SIZE
01222 #define TCPIP_MBOX_SIZE                 0
01223 #endif
01224 
01228 #ifndef SLIPIF_THREAD_NAME
01229 #define SLIPIF_THREAD_NAME             "slipif_loop"
01230 #endif
01231 
01237 #ifndef SLIPIF_THREAD_STACKSIZE
01238 #define SLIPIF_THREAD_STACKSIZE         0
01239 #endif
01240 
01246 #ifndef SLIPIF_THREAD_PRIO
01247 #define SLIPIF_THREAD_PRIO              1
01248 #endif
01249 
01253 #ifndef PPP_THREAD_NAME
01254 #define PPP_THREAD_NAME                "pppInputThread"
01255 #endif
01256 
01262 #ifndef PPP_THREAD_STACKSIZE
01263 #define PPP_THREAD_STACKSIZE            0
01264 #endif
01265 
01271 #ifndef PPP_THREAD_PRIO
01272 #define PPP_THREAD_PRIO                 1
01273 #endif
01274 
01278 #ifndef DEFAULT_THREAD_NAME
01279 #define DEFAULT_THREAD_NAME            "lwIP"
01280 #endif
01281 
01287 #ifndef DEFAULT_THREAD_STACKSIZE
01288 #define DEFAULT_THREAD_STACKSIZE        0
01289 #endif
01290 
01296 #ifndef DEFAULT_THREAD_PRIO
01297 #define DEFAULT_THREAD_PRIO             1
01298 #endif
01299 
01305 #ifndef DEFAULT_RAW_RECVMBOX_SIZE
01306 #define DEFAULT_RAW_RECVMBOX_SIZE       0
01307 #endif
01308 
01314 #ifndef DEFAULT_UDP_RECVMBOX_SIZE
01315 #define DEFAULT_UDP_RECVMBOX_SIZE       0
01316 #endif
01317 
01323 #ifndef DEFAULT_TCP_RECVMBOX_SIZE
01324 #define DEFAULT_TCP_RECVMBOX_SIZE       0
01325 #endif
01326 
01332 #ifndef DEFAULT_ACCEPTMBOX_SIZE
01333 #define DEFAULT_ACCEPTMBOX_SIZE         0
01334 #endif
01335 
01336 /*
01337    ----------------------------------------------
01338    ---------- Sequential layer options ----------
01339    ----------------------------------------------
01340 */
01345 #ifndef LWIP_TCPIP_CORE_LOCKING
01346 #define LWIP_TCPIP_CORE_LOCKING         0
01347 #endif
01348 
01353 #ifndef LWIP_TCPIP_CORE_LOCKING_INPUT
01354 #define LWIP_TCPIP_CORE_LOCKING_INPUT   0
01355 #endif
01356 
01360 #ifndef LWIP_NETCONN
01361 #define LWIP_NETCONN                    1
01362 #endif
01363 
01367 #ifndef LWIP_TCPIP_TIMEOUT
01368 #define LWIP_TCPIP_TIMEOUT              1
01369 #endif
01370 
01371 /*
01372    ------------------------------------
01373    ---------- Socket options ----------
01374    ------------------------------------
01375 */
01379 #ifndef LWIP_SOCKET
01380 #define LWIP_SOCKET                     1
01381 #endif
01382 
01387 #ifndef LWIP_COMPAT_SOCKETS
01388 #define LWIP_COMPAT_SOCKETS             1
01389 #endif
01390 
01396 #ifndef LWIP_POSIX_SOCKETS_IO_NAMES
01397 #define LWIP_POSIX_SOCKETS_IO_NAMES     1
01398 #endif
01399 
01405 #ifndef LWIP_TCP_KEEPALIVE
01406 #define LWIP_TCP_KEEPALIVE              0
01407 #endif
01408 
01412 #ifndef LWIP_SO_RCVTIMEO
01413 #define LWIP_SO_RCVTIMEO                0
01414 #endif
01415 
01419 #ifndef LWIP_SO_RCVBUF
01420 #define LWIP_SO_RCVBUF                  0
01421 #endif
01422 
01426 #ifndef RECV_BUFSIZE_DEFAULT
01427 #define RECV_BUFSIZE_DEFAULT            INT_MAX
01428 #endif
01429 
01433 #ifndef SO_REUSE
01434 #define SO_REUSE                        0
01435 #endif
01436 
01442 #ifndef SO_REUSE_RXTOALL
01443 #define SO_REUSE_RXTOALL                0
01444 #endif
01445 
01446 /*
01447    ----------------------------------------
01448    ---------- Statistics options ----------
01449    ----------------------------------------
01450 */
01454 #ifndef LWIP_STATS
01455 #define LWIP_STATS                      1
01456 #endif
01457 
01458 #if LWIP_STATS
01459 
01463 #ifndef LWIP_STATS_DISPLAY
01464 #define LWIP_STATS_DISPLAY              0
01465 #endif
01466 
01470 #ifndef LINK_STATS
01471 #define LINK_STATS                      1
01472 #endif
01473 
01477 #ifndef ETHARP_STATS
01478 #define ETHARP_STATS                    (LWIP_ARP)
01479 #endif
01480 
01484 #ifndef IP_STATS
01485 #define IP_STATS                        1
01486 #endif
01487 
01492 #ifndef IPFRAG_STATS
01493 #define IPFRAG_STATS                    (IP_REASSEMBLY || IP_FRAG)
01494 #endif
01495 
01499 #ifndef ICMP_STATS
01500 #define ICMP_STATS                      1
01501 #endif
01502 
01506 #ifndef IGMP_STATS
01507 #define IGMP_STATS                      (LWIP_IGMP)
01508 #endif
01509 
01514 #ifndef UDP_STATS
01515 #define UDP_STATS                       (LWIP_UDP)
01516 #endif
01517 
01522 #ifndef TCP_STATS
01523 #define TCP_STATS                       (LWIP_TCP)
01524 #endif
01525 
01529 #ifndef MEM_STATS
01530 #define MEM_STATS                       ((MEM_LIBC_MALLOC == 0) && (MEM_USE_POOLS == 0))
01531 #endif
01532 
01536 #ifndef MEMP_STATS
01537 #define MEMP_STATS                      (MEMP_MEM_MALLOC == 0)
01538 #endif
01539 
01543 #ifndef SYS_STATS
01544 #define SYS_STATS                       (NO_SYS == 0)
01545 #endif
01546 
01547 #else
01548 
01549 #define LINK_STATS                      0
01550 #define IP_STATS                        0
01551 #define IPFRAG_STATS                    0
01552 #define ICMP_STATS                      0
01553 #define IGMP_STATS                      0
01554 #define UDP_STATS                       0
01555 #define TCP_STATS                       0
01556 #define MEM_STATS                       0
01557 #define MEMP_STATS                      0
01558 #define SYS_STATS                       0
01559 #define LWIP_STATS_DISPLAY              0
01560 
01561 #endif /* LWIP_STATS */
01562 
01563 /*
01564    ---------------------------------
01565    ---------- PPP options ----------
01566    ---------------------------------
01567 */
01571 #ifndef PPP_SUPPORT
01572 #define PPP_SUPPORT                     0
01573 #endif
01574 
01578 #ifndef PPPOE_SUPPORT
01579 #define PPPOE_SUPPORT                   0
01580 #endif
01581 
01585 #ifndef PPPOS_SUPPORT
01586 #define PPPOS_SUPPORT                   PPP_SUPPORT
01587 #endif
01588 
01589 #if PPP_SUPPORT
01590 
01594 #ifndef NUM_PPP
01595 #define NUM_PPP                         1
01596 #endif
01597 
01601 #ifndef PAP_SUPPORT
01602 #define PAP_SUPPORT                     0
01603 #endif
01604 
01608 #ifndef CHAP_SUPPORT
01609 #define CHAP_SUPPORT                    0
01610 #endif
01611 
01615 #ifndef MSCHAP_SUPPORT
01616 #define MSCHAP_SUPPORT                  0
01617 #endif
01618 
01622 #ifndef CBCP_SUPPORT
01623 #define CBCP_SUPPORT                    0
01624 #endif
01625 
01629 #ifndef CCP_SUPPORT
01630 #define CCP_SUPPORT                     0
01631 #endif
01632 
01636 #ifndef VJ_SUPPORT
01637 #define VJ_SUPPORT                      0
01638 #endif
01639 
01643 #ifndef MD5_SUPPORT
01644 #define MD5_SUPPORT                     0
01645 #endif
01646 
01647 /*
01648  * Timeouts
01649  */
01650 #ifndef FSM_DEFTIMEOUT
01651 #define FSM_DEFTIMEOUT                  6       /* Timeout time in seconds */
01652 #endif
01653 
01654 #ifndef FSM_DEFMAXTERMREQS
01655 #define FSM_DEFMAXTERMREQS              2       /* Maximum Terminate-Request transmissions */
01656 #endif
01657 
01658 #ifndef FSM_DEFMAXCONFREQS
01659 #define FSM_DEFMAXCONFREQS              10      /* Maximum Configure-Request transmissions */
01660 #endif
01661 
01662 #ifndef FSM_DEFMAXNAKLOOPS
01663 #define FSM_DEFMAXNAKLOOPS              5       /* Maximum number of nak loops */
01664 #endif
01665 
01666 #ifndef UPAP_DEFTIMEOUT
01667 #define UPAP_DEFTIMEOUT                 6       /* Timeout (seconds) for retransmitting req */
01668 #endif
01669 
01670 #ifndef UPAP_DEFREQTIME
01671 #define UPAP_DEFREQTIME                 30      /* Time to wait for auth-req from peer */
01672 #endif
01673 
01674 #ifndef CHAP_DEFTIMEOUT
01675 #define CHAP_DEFTIMEOUT                 6       /* Timeout time in seconds */
01676 #endif
01677 
01678 #ifndef CHAP_DEFTRANSMITS
01679 #define CHAP_DEFTRANSMITS               10      /* max # times to send challenge */
01680 #endif
01681 
01682 /* Interval in seconds between keepalive echo requests, 0 to disable. */
01683 #ifndef LCP_ECHOINTERVAL
01684 #define LCP_ECHOINTERVAL                0
01685 #endif
01686 
01687 /* Number of unanswered echo requests before failure. */
01688 #ifndef LCP_MAXECHOFAILS
01689 #define LCP_MAXECHOFAILS                3
01690 #endif
01691 
01692 /* Max Xmit idle time (in jiffies) before resend flag char. */
01693 #ifndef PPP_MAXIDLEFLAG
01694 #define PPP_MAXIDLEFLAG                 100
01695 #endif
01696 
01697 /*
01698  * Packet sizes
01699  *
01700  * Note - lcp shouldn't be allowed to negotiate stuff outside these
01701  *    limits.  See lcp.h in the pppd directory.
01702  * (XXX - these constants should simply be shared by lcp.c instead
01703  *    of living in lcp.h)
01704  */
01705 #define PPP_MTU                         1500     /* Default MTU (size of Info field) */
01706 #ifndef PPP_MAXMTU
01707 /* #define PPP_MAXMTU  65535 - (PPP_HDRLEN + PPP_FCSLEN) */
01708 #define PPP_MAXMTU                      1500 /* Largest MTU we allow */
01709 #endif
01710 #define PPP_MINMTU                      64
01711 #define PPP_MRU                         1500     /* default MRU = max length of info field */
01712 #define PPP_MAXMRU                      1500     /* Largest MRU we allow */
01713 #ifndef PPP_DEFMRU
01714 #define PPP_DEFMRU                      296             /* Try for this */
01715 #endif
01716 #define PPP_MINMRU                      128             /* No MRUs below this */
01717 
01718 #ifndef MAXNAMELEN
01719 #define MAXNAMELEN                      256     /* max length of hostname or name for auth */
01720 #endif
01721 #ifndef MAXSECRETLEN
01722 #define MAXSECRETLEN                    256     /* max length of password or secret */
01723 #endif
01724 
01725 #endif /* PPP_SUPPORT */
01726 
01727 /*
01728    --------------------------------------
01729    ---------- Checksum options ----------
01730    --------------------------------------
01731 */
01735 #ifndef CHECKSUM_GEN_IP
01736 #define CHECKSUM_GEN_IP                 1
01737 #endif
01738  
01742 #ifndef CHECKSUM_GEN_UDP
01743 #define CHECKSUM_GEN_UDP                1
01744 #endif
01745  
01749 #ifndef CHECKSUM_GEN_TCP
01750 #define CHECKSUM_GEN_TCP                1
01751 #endif
01752  
01756 #ifndef CHECKSUM_CHECK_IP
01757 #define CHECKSUM_CHECK_IP               1
01758 #endif
01759  
01763 #ifndef CHECKSUM_CHECK_UDP
01764 #define CHECKSUM_CHECK_UDP              1
01765 #endif
01766 
01770 #ifndef CHECKSUM_CHECK_TCP
01771 #define CHECKSUM_CHECK_TCP              1
01772 #endif
01773 
01778 #ifndef LWIP_CHECKSUM_ON_COPY
01779 #define LWIP_CHECKSUM_ON_COPY           0
01780 #endif
01781 
01782 /*
01783    ---------------------------------------
01784    ---------- Debugging options ----------
01785    ---------------------------------------
01786 */
01792 #ifndef LWIP_DBG_MIN_LEVEL
01793 #define LWIP_DBG_MIN_LEVEL              LWIP_DBG_LEVEL_ALL
01794 #endif
01795 
01800 #ifndef LWIP_DBG_TYPES_ON
01801 #define LWIP_DBG_TYPES_ON               LWIP_DBG_ON
01802 #endif
01803 
01807 #ifndef ETHARP_DEBUG
01808 #define ETHARP_DEBUG                    LWIP_DBG_OFF
01809 #endif
01810 
01814 #ifndef NETIF_DEBUG
01815 #define NETIF_DEBUG                     LWIP_DBG_OFF
01816 #endif
01817 
01821 #ifndef PBUF_DEBUG
01822 #define PBUF_DEBUG                      LWIP_DBG_OFF
01823 #endif
01824 
01828 #ifndef API_LIB_DEBUG
01829 #define API_LIB_DEBUG                   LWIP_DBG_OFF
01830 #endif
01831 
01835 #ifndef API_MSG_DEBUG
01836 #define API_MSG_DEBUG                   LWIP_DBG_OFF
01837 #endif
01838 
01842 #ifndef SOCKETS_DEBUG
01843 #define SOCKETS_DEBUG                   LWIP_DBG_OFF
01844 #endif
01845 
01849 #ifndef ICMP_DEBUG
01850 #define ICMP_DEBUG                      LWIP_DBG_OFF
01851 #endif
01852 
01856 #ifndef IGMP_DEBUG
01857 #define IGMP_DEBUG                      LWIP_DBG_OFF
01858 #endif
01859 
01863 #ifndef INET_DEBUG
01864 #define INET_DEBUG                      LWIP_DBG_OFF
01865 #endif
01866 
01870 #ifndef IP_DEBUG
01871 #define IP_DEBUG                        LWIP_DBG_OFF
01872 #endif
01873 
01877 #ifndef IP_REASS_DEBUG
01878 #define IP_REASS_DEBUG                  LWIP_DBG_OFF
01879 #endif
01880 
01884 #ifndef RAW_DEBUG
01885 #define RAW_DEBUG                       LWIP_DBG_OFF
01886 #endif
01887 
01891 #ifndef MEM_DEBUG
01892 #define MEM_DEBUG                       LWIP_DBG_OFF
01893 #endif
01894 
01898 #ifndef MEMP_DEBUG
01899 #define MEMP_DEBUG                      LWIP_DBG_OFF
01900 #endif
01901 
01905 #ifndef SYS_DEBUG
01906 #define SYS_DEBUG                       LWIP_DBG_OFF
01907 #endif
01908 
01912 #ifndef TIMERS_DEBUG
01913 #define TIMERS_DEBUG                    LWIP_DBG_OFF
01914 #endif
01915 
01919 #ifndef TCP_DEBUG
01920 #define TCP_DEBUG                       LWIP_DBG_OFF
01921 #endif
01922 
01926 #ifndef TCP_INPUT_DEBUG
01927 #define TCP_INPUT_DEBUG                 LWIP_DBG_OFF
01928 #endif
01929 
01933 #ifndef TCP_FR_DEBUG
01934 #define TCP_FR_DEBUG                    LWIP_DBG_OFF
01935 #endif
01936 
01941 #ifndef TCP_RTO_DEBUG
01942 #define TCP_RTO_DEBUG                   LWIP_DBG_OFF
01943 #endif
01944 
01948 #ifndef TCP_CWND_DEBUG
01949 #define TCP_CWND_DEBUG                  LWIP_DBG_OFF
01950 #endif
01951 
01955 #ifndef TCP_WND_DEBUG
01956 #define TCP_WND_DEBUG                   LWIP_DBG_OFF
01957 #endif
01958 
01962 #ifndef TCP_OUTPUT_DEBUG
01963 #define TCP_OUTPUT_DEBUG                LWIP_DBG_OFF
01964 #endif
01965 
01969 #ifndef TCP_RST_DEBUG
01970 #define TCP_RST_DEBUG                   LWIP_DBG_OFF
01971 #endif
01972 
01976 #ifndef TCP_QLEN_DEBUG
01977 #define TCP_QLEN_DEBUG                  LWIP_DBG_OFF
01978 #endif
01979 
01983 #ifndef UDP_DEBUG
01984 #define UDP_DEBUG                       LWIP_DBG_OFF
01985 #endif
01986 
01990 #ifndef TCPIP_DEBUG
01991 #define TCPIP_DEBUG                     LWIP_DBG_OFF
01992 #endif
01993 
01997 #ifndef PPP_DEBUG
01998 #define PPP_DEBUG                       LWIP_DBG_OFF
01999 #endif
02000 
02004 #ifndef SLIP_DEBUG
02005 #define SLIP_DEBUG                      LWIP_DBG_OFF
02006 #endif
02007 
02011 #ifndef DHCP_DEBUG
02012 #define DHCP_DEBUG                      LWIP_DBG_OFF
02013 #endif
02014 
02018 #ifndef AUTOIP_DEBUG
02019 #define AUTOIP_DEBUG                    LWIP_DBG_OFF
02020 #endif
02021 
02025 #ifndef SNMP_MSG_DEBUG
02026 #define SNMP_MSG_DEBUG                  LWIP_DBG_OFF
02027 #endif
02028 
02032 #ifndef SNMP_MIB_DEBUG
02033 #define SNMP_MIB_DEBUG                  LWIP_DBG_OFF
02034 #endif
02035 
02039 #ifndef DNS_DEBUG
02040 #define DNS_DEBUG                       LWIP_DBG_OFF
02041 #endif
02042 
02043 #endif /* __LWIP_OPT_H__ */

Generated on Sun May 27 2012 04:36:04 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.