Dependents:   TimeZoneDemo EthernetJackTestCode MMEx_Challenge ntp_mem ... more

Committer:
segundo
Date:
Tue Nov 09 20:54:15 2010 +0000
Revision:
0:ac1725ba162c

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
segundo 0:ac1725ba162c 1 /**
segundo 0:ac1725ba162c 2 * @file
segundo 0:ac1725ba162c 3 *
segundo 0:ac1725ba162c 4 * lwIP Options Configuration
segundo 0:ac1725ba162c 5 */
segundo 0:ac1725ba162c 6
segundo 0:ac1725ba162c 7 /*
segundo 0:ac1725ba162c 8 * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
segundo 0:ac1725ba162c 9 * All rights reserved.
segundo 0:ac1725ba162c 10 *
segundo 0:ac1725ba162c 11 * Redistribution and use in source and binary forms, with or without modification,
segundo 0:ac1725ba162c 12 * are permitted provided that the following conditions are met:
segundo 0:ac1725ba162c 13 *
segundo 0:ac1725ba162c 14 * 1. Redistributions of source code must retain the above copyright notice,
segundo 0:ac1725ba162c 15 * this list of conditions and the following disclaimer.
segundo 0:ac1725ba162c 16 * 2. Redistributions in binary form must reproduce the above copyright notice,
segundo 0:ac1725ba162c 17 * this list of conditions and the following disclaimer in the documentation
segundo 0:ac1725ba162c 18 * and/or other materials provided with the distribution.
segundo 0:ac1725ba162c 19 * 3. The name of the author may not be used to endorse or promote products
segundo 0:ac1725ba162c 20 * derived from this software without specific prior written permission.
segundo 0:ac1725ba162c 21 *
segundo 0:ac1725ba162c 22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
segundo 0:ac1725ba162c 23 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
segundo 0:ac1725ba162c 24 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
segundo 0:ac1725ba162c 25 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
segundo 0:ac1725ba162c 26 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
segundo 0:ac1725ba162c 27 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
segundo 0:ac1725ba162c 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
segundo 0:ac1725ba162c 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
segundo 0:ac1725ba162c 30 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
segundo 0:ac1725ba162c 31 * OF SUCH DAMAGE.
segundo 0:ac1725ba162c 32 *
segundo 0:ac1725ba162c 33 * This file is part of the lwIP TCP/IP stack.
segundo 0:ac1725ba162c 34 *
segundo 0:ac1725ba162c 35 * Author: Adam Dunkels <adam@sics.se>
segundo 0:ac1725ba162c 36 *
segundo 0:ac1725ba162c 37 */
segundo 0:ac1725ba162c 38 #ifndef __LWIP_OPT_H__
segundo 0:ac1725ba162c 39 #define __LWIP_OPT_H__
segundo 0:ac1725ba162c 40
segundo 0:ac1725ba162c 41 /*
segundo 0:ac1725ba162c 42 * Include user defined options first. Anything not defined in these files
segundo 0:ac1725ba162c 43 * will be set to standard values. Override anything you dont like!
segundo 0:ac1725ba162c 44 */
segundo 0:ac1725ba162c 45 #include "lwipopts.h"
segundo 0:ac1725ba162c 46 #include "lwip/debug.h"
segundo 0:ac1725ba162c 47
segundo 0:ac1725ba162c 48 /*
segundo 0:ac1725ba162c 49 -----------------------------------------------
segundo 0:ac1725ba162c 50 ---------- Platform specific locking ----------
segundo 0:ac1725ba162c 51 -----------------------------------------------
segundo 0:ac1725ba162c 52 */
segundo 0:ac1725ba162c 53
segundo 0:ac1725ba162c 54 /**
segundo 0:ac1725ba162c 55 * SYS_LIGHTWEIGHT_PROT==1: if you want inter-task protection for certain
segundo 0:ac1725ba162c 56 * critical regions during buffer allocation, deallocation and memory
segundo 0:ac1725ba162c 57 * allocation and deallocation.
segundo 0:ac1725ba162c 58 */
segundo 0:ac1725ba162c 59 #ifndef SYS_LIGHTWEIGHT_PROT
segundo 0:ac1725ba162c 60 #define SYS_LIGHTWEIGHT_PROT 0
segundo 0:ac1725ba162c 61 #endif
segundo 0:ac1725ba162c 62
segundo 0:ac1725ba162c 63 /**
segundo 0:ac1725ba162c 64 * NO_SYS==1: Provides VERY minimal functionality. Otherwise,
segundo 0:ac1725ba162c 65 * use lwIP facilities.
segundo 0:ac1725ba162c 66 */
segundo 0:ac1725ba162c 67 #ifndef NO_SYS
segundo 0:ac1725ba162c 68 #define NO_SYS 0
segundo 0:ac1725ba162c 69 #endif
segundo 0:ac1725ba162c 70
segundo 0:ac1725ba162c 71 /**
segundo 0:ac1725ba162c 72 * NO_SYS_NO_TIMERS==1: Drop support for sys_timeout when NO_SYS==1
segundo 0:ac1725ba162c 73 * Mainly for compatibility to old versions.
segundo 0:ac1725ba162c 74 */
segundo 0:ac1725ba162c 75 #ifndef NO_SYS_NO_TIMERS
segundo 0:ac1725ba162c 76 #define NO_SYS_NO_TIMERS 0
segundo 0:ac1725ba162c 77 #endif
segundo 0:ac1725ba162c 78
segundo 0:ac1725ba162c 79 /**
segundo 0:ac1725ba162c 80 * MEMCPY: override this if you have a faster implementation at hand than the
segundo 0:ac1725ba162c 81 * one included in your C library
segundo 0:ac1725ba162c 82 */
segundo 0:ac1725ba162c 83 #ifndef MEMCPY
segundo 0:ac1725ba162c 84 #define MEMCPY(dst,src,len) memcpy(dst,src,len)
segundo 0:ac1725ba162c 85 #endif
segundo 0:ac1725ba162c 86
segundo 0:ac1725ba162c 87 /**
segundo 0:ac1725ba162c 88 * SMEMCPY: override this with care! Some compilers (e.g. gcc) can inline a
segundo 0:ac1725ba162c 89 * call to memcpy() if the length is known at compile time and is small.
segundo 0:ac1725ba162c 90 */
segundo 0:ac1725ba162c 91 #ifndef SMEMCPY
segundo 0:ac1725ba162c 92 #define SMEMCPY(dst,src,len) memcpy(dst,src,len)
segundo 0:ac1725ba162c 93 #endif
segundo 0:ac1725ba162c 94
segundo 0:ac1725ba162c 95 /*
segundo 0:ac1725ba162c 96 ------------------------------------
segundo 0:ac1725ba162c 97 ---------- Memory options ----------
segundo 0:ac1725ba162c 98 ------------------------------------
segundo 0:ac1725ba162c 99 */
segundo 0:ac1725ba162c 100 /**
segundo 0:ac1725ba162c 101 * MEM_LIBC_MALLOC==1: Use malloc/free/realloc provided by your C-library
segundo 0:ac1725ba162c 102 * instead of the lwip internal allocator. Can save code size if you
segundo 0:ac1725ba162c 103 * already use it.
segundo 0:ac1725ba162c 104 */
segundo 0:ac1725ba162c 105 #ifndef MEM_LIBC_MALLOC
segundo 0:ac1725ba162c 106 #define MEM_LIBC_MALLOC 0
segundo 0:ac1725ba162c 107 #endif
segundo 0:ac1725ba162c 108
segundo 0:ac1725ba162c 109 /**
segundo 0:ac1725ba162c 110 * MEMP_MEM_MALLOC==1: Use mem_malloc/mem_free instead of the lwip pool allocator.
segundo 0:ac1725ba162c 111 * Especially useful with MEM_LIBC_MALLOC but handle with care regarding execution
segundo 0:ac1725ba162c 112 * speed and usage from interrupts!
segundo 0:ac1725ba162c 113 */
segundo 0:ac1725ba162c 114 #ifndef MEMP_MEM_MALLOC
segundo 0:ac1725ba162c 115 #define MEMP_MEM_MALLOC 0
segundo 0:ac1725ba162c 116 #endif
segundo 0:ac1725ba162c 117
segundo 0:ac1725ba162c 118 /**
segundo 0:ac1725ba162c 119 * MEM_ALIGNMENT: should be set to the alignment of the CPU
segundo 0:ac1725ba162c 120 * 4 byte alignment -> #define MEM_ALIGNMENT 4
segundo 0:ac1725ba162c 121 * 2 byte alignment -> #define MEM_ALIGNMENT 2
segundo 0:ac1725ba162c 122 */
segundo 0:ac1725ba162c 123 #ifndef MEM_ALIGNMENT
segundo 0:ac1725ba162c 124 #define MEM_ALIGNMENT 1
segundo 0:ac1725ba162c 125 #endif
segundo 0:ac1725ba162c 126
segundo 0:ac1725ba162c 127 /**
segundo 0:ac1725ba162c 128 * MEM_SIZE: the size of the heap memory. If the application will send
segundo 0:ac1725ba162c 129 * a lot of data that needs to be copied, this should be set high.
segundo 0:ac1725ba162c 130 */
segundo 0:ac1725ba162c 131 #ifndef MEM_SIZE
segundo 0:ac1725ba162c 132 #define MEM_SIZE 1600
segundo 0:ac1725ba162c 133 #endif
segundo 0:ac1725ba162c 134
segundo 0:ac1725ba162c 135 /**
segundo 0:ac1725ba162c 136 * MEMP_SEPARATE_POOLS: if defined to 1, each pool is placed in its own array.
segundo 0:ac1725ba162c 137 * This can be used to individually change the location of each pool.
segundo 0:ac1725ba162c 138 * Default is one big array for all pools
segundo 0:ac1725ba162c 139 */
segundo 0:ac1725ba162c 140 #ifndef MEMP_SEPARATE_POOLS
segundo 0:ac1725ba162c 141 #define MEMP_SEPARATE_POOLS 0
segundo 0:ac1725ba162c 142 #endif
segundo 0:ac1725ba162c 143
segundo 0:ac1725ba162c 144 /**
segundo 0:ac1725ba162c 145 * MEMP_OVERFLOW_CHECK: memp overflow protection reserves a configurable
segundo 0:ac1725ba162c 146 * amount of bytes before and after each memp element in every pool and fills
segundo 0:ac1725ba162c 147 * it with a prominent default value.
segundo 0:ac1725ba162c 148 * MEMP_OVERFLOW_CHECK == 0 no checking
segundo 0:ac1725ba162c 149 * MEMP_OVERFLOW_CHECK == 1 checks each element when it is freed
segundo 0:ac1725ba162c 150 * MEMP_OVERFLOW_CHECK >= 2 checks each element in every pool every time
segundo 0:ac1725ba162c 151 * memp_malloc() or memp_free() is called (useful but slow!)
segundo 0:ac1725ba162c 152 */
segundo 0:ac1725ba162c 153 #ifndef MEMP_OVERFLOW_CHECK
segundo 0:ac1725ba162c 154 #define MEMP_OVERFLOW_CHECK 0
segundo 0:ac1725ba162c 155 #endif
segundo 0:ac1725ba162c 156
segundo 0:ac1725ba162c 157 /**
segundo 0:ac1725ba162c 158 * MEMP_SANITY_CHECK==1: run a sanity check after each memp_free() to make
segundo 0:ac1725ba162c 159 * sure that there are no cycles in the linked lists.
segundo 0:ac1725ba162c 160 */
segundo 0:ac1725ba162c 161 #ifndef MEMP_SANITY_CHECK
segundo 0:ac1725ba162c 162 #define MEMP_SANITY_CHECK 0
segundo 0:ac1725ba162c 163 #endif
segundo 0:ac1725ba162c 164
segundo 0:ac1725ba162c 165 /**
segundo 0:ac1725ba162c 166 * MEM_USE_POOLS==1: Use an alternative to malloc() by allocating from a set
segundo 0:ac1725ba162c 167 * of memory pools of various sizes. When mem_malloc is called, an element of
segundo 0:ac1725ba162c 168 * the smallest pool that can provide the length needed is returned.
segundo 0:ac1725ba162c 169 * To use this, MEMP_USE_CUSTOM_POOLS also has to be enabled.
segundo 0:ac1725ba162c 170 */
segundo 0:ac1725ba162c 171 #ifndef MEM_USE_POOLS
segundo 0:ac1725ba162c 172 #define MEM_USE_POOLS 0
segundo 0:ac1725ba162c 173 #endif
segundo 0:ac1725ba162c 174
segundo 0:ac1725ba162c 175 /**
segundo 0:ac1725ba162c 176 * MEM_USE_POOLS_TRY_BIGGER_POOL==1: if one malloc-pool is empty, try the next
segundo 0:ac1725ba162c 177 * bigger pool - WARNING: THIS MIGHT WASTE MEMORY but it can make a system more
segundo 0:ac1725ba162c 178 * reliable. */
segundo 0:ac1725ba162c 179 #ifndef MEM_USE_POOLS_TRY_BIGGER_POOL
segundo 0:ac1725ba162c 180 #define MEM_USE_POOLS_TRY_BIGGER_POOL 0
segundo 0:ac1725ba162c 181 #endif
segundo 0:ac1725ba162c 182
segundo 0:ac1725ba162c 183 /**
segundo 0:ac1725ba162c 184 * MEMP_USE_CUSTOM_POOLS==1: whether to include a user file lwippools.h
segundo 0:ac1725ba162c 185 * that defines additional pools beyond the "standard" ones required
segundo 0:ac1725ba162c 186 * by lwIP. If you set this to 1, you must have lwippools.h in your
segundo 0:ac1725ba162c 187 * inlude path somewhere.
segundo 0:ac1725ba162c 188 */
segundo 0:ac1725ba162c 189 #ifndef MEMP_USE_CUSTOM_POOLS
segundo 0:ac1725ba162c 190 #define MEMP_USE_CUSTOM_POOLS 0
segundo 0:ac1725ba162c 191 #endif
segundo 0:ac1725ba162c 192
segundo 0:ac1725ba162c 193 /**
segundo 0:ac1725ba162c 194 * Set this to 1 if you want to free PBUF_RAM pbufs (or call mem_free()) from
segundo 0:ac1725ba162c 195 * interrupt context (or another context that doesn't allow waiting for a
segundo 0:ac1725ba162c 196 * semaphore).
segundo 0:ac1725ba162c 197 * If set to 1, mem_malloc will be protected by a semaphore and SYS_ARCH_PROTECT,
segundo 0:ac1725ba162c 198 * while mem_free will only use SYS_ARCH_PROTECT. mem_malloc SYS_ARCH_UNPROTECTs
segundo 0:ac1725ba162c 199 * with each loop so that mem_free can run.
segundo 0:ac1725ba162c 200 *
segundo 0:ac1725ba162c 201 * ATTENTION: As you can see from the above description, this leads to dis-/
segundo 0:ac1725ba162c 202 * enabling interrupts often, which can be slow! Also, on low memory, mem_malloc
segundo 0:ac1725ba162c 203 * can need longer.
segundo 0:ac1725ba162c 204 *
segundo 0:ac1725ba162c 205 * If you don't want that, at least for NO_SYS=0, you can still use the following
segundo 0:ac1725ba162c 206 * functions to enqueue a deallocation call which then runs in the tcpip_thread
segundo 0:ac1725ba162c 207 * context:
segundo 0:ac1725ba162c 208 * - pbuf_free_callback(p);
segundo 0:ac1725ba162c 209 * - mem_free_callback(m);
segundo 0:ac1725ba162c 210 */
segundo 0:ac1725ba162c 211 #ifndef LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
segundo 0:ac1725ba162c 212 #define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 0
segundo 0:ac1725ba162c 213 #endif
segundo 0:ac1725ba162c 214
segundo 0:ac1725ba162c 215 /*
segundo 0:ac1725ba162c 216 ------------------------------------------------
segundo 0:ac1725ba162c 217 ---------- Internal Memory Pool Sizes ----------
segundo 0:ac1725ba162c 218 ------------------------------------------------
segundo 0:ac1725ba162c 219 */
segundo 0:ac1725ba162c 220 /**
segundo 0:ac1725ba162c 221 * MEMP_NUM_PBUF: the number of memp struct pbufs (used for PBUF_ROM and PBUF_REF).
segundo 0:ac1725ba162c 222 * If the application sends a lot of data out of ROM (or other static memory),
segundo 0:ac1725ba162c 223 * this should be set high.
segundo 0:ac1725ba162c 224 */
segundo 0:ac1725ba162c 225 #ifndef MEMP_NUM_PBUF
segundo 0:ac1725ba162c 226 #define MEMP_NUM_PBUF 16
segundo 0:ac1725ba162c 227 #endif
segundo 0:ac1725ba162c 228
segundo 0:ac1725ba162c 229 /**
segundo 0:ac1725ba162c 230 * MEMP_NUM_RAW_PCB: Number of raw connection PCBs
segundo 0:ac1725ba162c 231 * (requires the LWIP_RAW option)
segundo 0:ac1725ba162c 232 */
segundo 0:ac1725ba162c 233 #ifndef MEMP_NUM_RAW_PCB
segundo 0:ac1725ba162c 234 #define MEMP_NUM_RAW_PCB 4
segundo 0:ac1725ba162c 235 #endif
segundo 0:ac1725ba162c 236
segundo 0:ac1725ba162c 237 /**
segundo 0:ac1725ba162c 238 * MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
segundo 0:ac1725ba162c 239 * per active UDP "connection".
segundo 0:ac1725ba162c 240 * (requires the LWIP_UDP option)
segundo 0:ac1725ba162c 241 */
segundo 0:ac1725ba162c 242 #ifndef MEMP_NUM_UDP_PCB
segundo 0:ac1725ba162c 243 #define MEMP_NUM_UDP_PCB 4
segundo 0:ac1725ba162c 244 #endif
segundo 0:ac1725ba162c 245
segundo 0:ac1725ba162c 246 /**
segundo 0:ac1725ba162c 247 * MEMP_NUM_TCP_PCB: the number of simulatenously active TCP connections.
segundo 0:ac1725ba162c 248 * (requires the LWIP_TCP option)
segundo 0:ac1725ba162c 249 */
segundo 0:ac1725ba162c 250 #ifndef MEMP_NUM_TCP_PCB
segundo 0:ac1725ba162c 251 #define MEMP_NUM_TCP_PCB 5
segundo 0:ac1725ba162c 252 #endif
segundo 0:ac1725ba162c 253
segundo 0:ac1725ba162c 254 /**
segundo 0:ac1725ba162c 255 * MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections.
segundo 0:ac1725ba162c 256 * (requires the LWIP_TCP option)
segundo 0:ac1725ba162c 257 */
segundo 0:ac1725ba162c 258 #ifndef MEMP_NUM_TCP_PCB_LISTEN
segundo 0:ac1725ba162c 259 #define MEMP_NUM_TCP_PCB_LISTEN 8
segundo 0:ac1725ba162c 260 #endif
segundo 0:ac1725ba162c 261
segundo 0:ac1725ba162c 262 /**
segundo 0:ac1725ba162c 263 * MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments.
segundo 0:ac1725ba162c 264 * (requires the LWIP_TCP option)
segundo 0:ac1725ba162c 265 */
segundo 0:ac1725ba162c 266 #ifndef MEMP_NUM_TCP_SEG
segundo 0:ac1725ba162c 267 #define MEMP_NUM_TCP_SEG 16
segundo 0:ac1725ba162c 268 #endif
segundo 0:ac1725ba162c 269
segundo 0:ac1725ba162c 270 /**
segundo 0:ac1725ba162c 271 * MEMP_NUM_REASSDATA: the number of IP packets simultaneously queued for
segundo 0:ac1725ba162c 272 * reassembly (whole packets, not fragments!)
segundo 0:ac1725ba162c 273 */
segundo 0:ac1725ba162c 274 #ifndef MEMP_NUM_REASSDATA
segundo 0:ac1725ba162c 275 #define MEMP_NUM_REASSDATA 5
segundo 0:ac1725ba162c 276 #endif
segundo 0:ac1725ba162c 277
segundo 0:ac1725ba162c 278 /**
segundo 0:ac1725ba162c 279 * MEMP_NUM_FRAG_PBUF: the number of IP fragments simultaneously sent
segundo 0:ac1725ba162c 280 * (fragments, not whole packets!).
segundo 0:ac1725ba162c 281 * This is only used with IP_FRAG_USES_STATIC_BUF==0 and
segundo 0:ac1725ba162c 282 * LWIP_NETIF_TX_SINGLE_PBUF==0 and only has to be > 1 with DMA-enabled MACs
segundo 0:ac1725ba162c 283 * where the packet is not yet sent when netif->output returns.
segundo 0:ac1725ba162c 284 */
segundo 0:ac1725ba162c 285 #ifndef MEMP_NUM_FRAG_PBUF
segundo 0:ac1725ba162c 286 #define MEMP_NUM_FRAG_PBUF 15
segundo 0:ac1725ba162c 287 #endif
segundo 0:ac1725ba162c 288
segundo 0:ac1725ba162c 289 /**
segundo 0:ac1725ba162c 290 * MEMP_NUM_ARP_QUEUE: the number of simulateously queued outgoing
segundo 0:ac1725ba162c 291 * packets (pbufs) that are waiting for an ARP request (to resolve
segundo 0:ac1725ba162c 292 * their destination address) to finish.
segundo 0:ac1725ba162c 293 * (requires the ARP_QUEUEING option)
segundo 0:ac1725ba162c 294 */
segundo 0:ac1725ba162c 295 #ifndef MEMP_NUM_ARP_QUEUE
segundo 0:ac1725ba162c 296 #define MEMP_NUM_ARP_QUEUE 30
segundo 0:ac1725ba162c 297 #endif
segundo 0:ac1725ba162c 298
segundo 0:ac1725ba162c 299 /**
segundo 0:ac1725ba162c 300 * MEMP_NUM_IGMP_GROUP: The number of multicast groups whose network interfaces
segundo 0:ac1725ba162c 301 * can be members et the same time (one per netif - allsystems group -, plus one
segundo 0:ac1725ba162c 302 * per netif membership).
segundo 0:ac1725ba162c 303 * (requires the LWIP_IGMP option)
segundo 0:ac1725ba162c 304 */
segundo 0:ac1725ba162c 305 #ifndef MEMP_NUM_IGMP_GROUP
segundo 0:ac1725ba162c 306 #define MEMP_NUM_IGMP_GROUP 8
segundo 0:ac1725ba162c 307 #endif
segundo 0:ac1725ba162c 308
segundo 0:ac1725ba162c 309 /**
segundo 0:ac1725ba162c 310 * MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts.
segundo 0:ac1725ba162c 311 * (requires NO_SYS==0)
segundo 0:ac1725ba162c 312 */
segundo 0:ac1725ba162c 313 #ifndef MEMP_NUM_SYS_TIMEOUT
segundo 0:ac1725ba162c 314 #define MEMP_NUM_SYS_TIMEOUT 3
segundo 0:ac1725ba162c 315 #endif
segundo 0:ac1725ba162c 316
segundo 0:ac1725ba162c 317 /**
segundo 0:ac1725ba162c 318 * MEMP_NUM_NETBUF: the number of struct netbufs.
segundo 0:ac1725ba162c 319 * (only needed if you use the sequential API, like api_lib.c)
segundo 0:ac1725ba162c 320 */
segundo 0:ac1725ba162c 321 #ifndef MEMP_NUM_NETBUF
segundo 0:ac1725ba162c 322 #define MEMP_NUM_NETBUF 2
segundo 0:ac1725ba162c 323 #endif
segundo 0:ac1725ba162c 324
segundo 0:ac1725ba162c 325 /**
segundo 0:ac1725ba162c 326 * MEMP_NUM_NETCONN: the number of struct netconns.
segundo 0:ac1725ba162c 327 * (only needed if you use the sequential API, like api_lib.c)
segundo 0:ac1725ba162c 328 */
segundo 0:ac1725ba162c 329 #ifndef MEMP_NUM_NETCONN
segundo 0:ac1725ba162c 330 #define MEMP_NUM_NETCONN 4
segundo 0:ac1725ba162c 331 #endif
segundo 0:ac1725ba162c 332
segundo 0:ac1725ba162c 333 /**
segundo 0:ac1725ba162c 334 * MEMP_NUM_TCPIP_MSG_API: the number of struct tcpip_msg, which are used
segundo 0:ac1725ba162c 335 * for callback/timeout API communication.
segundo 0:ac1725ba162c 336 * (only needed if you use tcpip.c)
segundo 0:ac1725ba162c 337 */
segundo 0:ac1725ba162c 338 #ifndef MEMP_NUM_TCPIP_MSG_API
segundo 0:ac1725ba162c 339 #define MEMP_NUM_TCPIP_MSG_API 8
segundo 0:ac1725ba162c 340 #endif
segundo 0:ac1725ba162c 341
segundo 0:ac1725ba162c 342 /**
segundo 0:ac1725ba162c 343 * MEMP_NUM_TCPIP_MSG_INPKT: the number of struct tcpip_msg, which are used
segundo 0:ac1725ba162c 344 * for incoming packets.
segundo 0:ac1725ba162c 345 * (only needed if you use tcpip.c)
segundo 0:ac1725ba162c 346 */
segundo 0:ac1725ba162c 347 #ifndef MEMP_NUM_TCPIP_MSG_INPKT
segundo 0:ac1725ba162c 348 #define MEMP_NUM_TCPIP_MSG_INPKT 8
segundo 0:ac1725ba162c 349 #endif
segundo 0:ac1725ba162c 350
segundo 0:ac1725ba162c 351 /**
segundo 0:ac1725ba162c 352 * MEMP_NUM_SNMP_NODE: the number of leafs in the SNMP tree.
segundo 0:ac1725ba162c 353 */
segundo 0:ac1725ba162c 354 #ifndef MEMP_NUM_SNMP_NODE
segundo 0:ac1725ba162c 355 #define MEMP_NUM_SNMP_NODE 50
segundo 0:ac1725ba162c 356 #endif
segundo 0:ac1725ba162c 357
segundo 0:ac1725ba162c 358 /**
segundo 0:ac1725ba162c 359 * MEMP_NUM_SNMP_ROOTNODE: the number of branches in the SNMP tree.
segundo 0:ac1725ba162c 360 * Every branch has one leaf (MEMP_NUM_SNMP_NODE) at least!
segundo 0:ac1725ba162c 361 */
segundo 0:ac1725ba162c 362 #ifndef MEMP_NUM_SNMP_ROOTNODE
segundo 0:ac1725ba162c 363 #define MEMP_NUM_SNMP_ROOTNODE 30
segundo 0:ac1725ba162c 364 #endif
segundo 0:ac1725ba162c 365
segundo 0:ac1725ba162c 366 /**
segundo 0:ac1725ba162c 367 * MEMP_NUM_SNMP_VARBIND: the number of concurrent requests (does not have to
segundo 0:ac1725ba162c 368 * be changed normally) - 2 of these are used per request (1 for input,
segundo 0:ac1725ba162c 369 * 1 for output)
segundo 0:ac1725ba162c 370 */
segundo 0:ac1725ba162c 371 #ifndef MEMP_NUM_SNMP_VARBIND
segundo 0:ac1725ba162c 372 #define MEMP_NUM_SNMP_VARBIND 2
segundo 0:ac1725ba162c 373 #endif
segundo 0:ac1725ba162c 374
segundo 0:ac1725ba162c 375 /**
segundo 0:ac1725ba162c 376 * MEMP_NUM_SNMP_VALUE: the number of OID or values concurrently used
segundo 0:ac1725ba162c 377 * (does not have to be changed normally) - 3 of these are used per request
segundo 0:ac1725ba162c 378 * (1 for the value read and 2 for OIDs - input and output)
segundo 0:ac1725ba162c 379 */
segundo 0:ac1725ba162c 380 #ifndef MEMP_NUM_SNMP_VALUE
segundo 0:ac1725ba162c 381 #define MEMP_NUM_SNMP_VALUE 3
segundo 0:ac1725ba162c 382 #endif
segundo 0:ac1725ba162c 383
segundo 0:ac1725ba162c 384 /**
segundo 0:ac1725ba162c 385 * MEMP_NUM_NETDB: the number of concurrently running lwip_addrinfo() calls
segundo 0:ac1725ba162c 386 * (before freeing the corresponding memory using lwip_freeaddrinfo()).
segundo 0:ac1725ba162c 387 */
segundo 0:ac1725ba162c 388 #ifndef MEMP_NUM_NETDB
segundo 0:ac1725ba162c 389 #define MEMP_NUM_NETDB 1
segundo 0:ac1725ba162c 390 #endif
segundo 0:ac1725ba162c 391
segundo 0:ac1725ba162c 392 /**
segundo 0:ac1725ba162c 393 * MEMP_NUM_LOCALHOSTLIST: the number of host entries in the local host list
segundo 0:ac1725ba162c 394 * if DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1.
segundo 0:ac1725ba162c 395 */
segundo 0:ac1725ba162c 396 #ifndef MEMP_NUM_LOCALHOSTLIST
segundo 0:ac1725ba162c 397 #define MEMP_NUM_LOCALHOSTLIST 1
segundo 0:ac1725ba162c 398 #endif
segundo 0:ac1725ba162c 399
segundo 0:ac1725ba162c 400 /**
segundo 0:ac1725ba162c 401 * MEMP_NUM_PPPOE_INTERFACES: the number of concurrently active PPPoE
segundo 0:ac1725ba162c 402 * interfaces (only used with PPPOE_SUPPORT==1)
segundo 0:ac1725ba162c 403 */
segundo 0:ac1725ba162c 404 #ifndef MEMP_NUM_PPPOE_INTERFACES
segundo 0:ac1725ba162c 405 #define MEMP_NUM_PPPOE_INTERFACES 1
segundo 0:ac1725ba162c 406 #endif
segundo 0:ac1725ba162c 407
segundo 0:ac1725ba162c 408 /**
segundo 0:ac1725ba162c 409 * PBUF_POOL_SIZE: the number of buffers in the pbuf pool.
segundo 0:ac1725ba162c 410 */
segundo 0:ac1725ba162c 411 #ifndef PBUF_POOL_SIZE
segundo 0:ac1725ba162c 412 #define PBUF_POOL_SIZE 16
segundo 0:ac1725ba162c 413 #endif
segundo 0:ac1725ba162c 414
segundo 0:ac1725ba162c 415 /*
segundo 0:ac1725ba162c 416 ---------------------------------
segundo 0:ac1725ba162c 417 ---------- ARP options ----------
segundo 0:ac1725ba162c 418 ---------------------------------
segundo 0:ac1725ba162c 419 */
segundo 0:ac1725ba162c 420 /**
segundo 0:ac1725ba162c 421 * LWIP_ARP==1: Enable ARP functionality.
segundo 0:ac1725ba162c 422 */
segundo 0:ac1725ba162c 423 #ifndef LWIP_ARP
segundo 0:ac1725ba162c 424 #define LWIP_ARP 1
segundo 0:ac1725ba162c 425 #endif
segundo 0:ac1725ba162c 426
segundo 0:ac1725ba162c 427 /**
segundo 0:ac1725ba162c 428 * ARP_TABLE_SIZE: Number of active MAC-IP address pairs cached.
segundo 0:ac1725ba162c 429 */
segundo 0:ac1725ba162c 430 #ifndef ARP_TABLE_SIZE
segundo 0:ac1725ba162c 431 #define ARP_TABLE_SIZE 10
segundo 0:ac1725ba162c 432 #endif
segundo 0:ac1725ba162c 433
segundo 0:ac1725ba162c 434 /**
segundo 0:ac1725ba162c 435 * ARP_QUEUEING==1: Outgoing packets are queued during hardware address
segundo 0:ac1725ba162c 436 * resolution.
segundo 0:ac1725ba162c 437 */
segundo 0:ac1725ba162c 438 #ifndef ARP_QUEUEING
segundo 0:ac1725ba162c 439 #define ARP_QUEUEING 1
segundo 0:ac1725ba162c 440 #endif
segundo 0:ac1725ba162c 441
segundo 0:ac1725ba162c 442 /**
segundo 0:ac1725ba162c 443 * ETHARP_TRUST_IP_MAC==1: Incoming IP packets cause the ARP table to be
segundo 0:ac1725ba162c 444 * updated with the source MAC and IP addresses supplied in the packet.
segundo 0:ac1725ba162c 445 * You may want to disable this if you do not trust LAN peers to have the
segundo 0:ac1725ba162c 446 * correct addresses, or as a limited approach to attempt to handle
segundo 0:ac1725ba162c 447 * spoofing. If disabled, lwIP will need to make a new ARP request if
segundo 0:ac1725ba162c 448 * the peer is not already in the ARP table, adding a little latency.
segundo 0:ac1725ba162c 449 * The peer *is* in the ARP table if it requested our address before.
segundo 0:ac1725ba162c 450 * Also notice that this slows down input processing of every IP packet!
segundo 0:ac1725ba162c 451 */
segundo 0:ac1725ba162c 452 #ifndef ETHARP_TRUST_IP_MAC
segundo 0:ac1725ba162c 453 #define ETHARP_TRUST_IP_MAC 0
segundo 0:ac1725ba162c 454 #endif
segundo 0:ac1725ba162c 455
segundo 0:ac1725ba162c 456 /**
segundo 0:ac1725ba162c 457 * ETHARP_SUPPORT_VLAN==1: support receiving ethernet packets with VLAN header.
segundo 0:ac1725ba162c 458 * Additionally, you can define ETHARP_VLAN_CHECK to an u16_t VLAN ID to check.
segundo 0:ac1725ba162c 459 * If ETHARP_VLAN_CHECK is defined, only VLAN-traffic for this VLAN is accepted.
segundo 0:ac1725ba162c 460 * If ETHARP_VLAN_CHECK is not defined, all traffic is accepted.
segundo 0:ac1725ba162c 461 */
segundo 0:ac1725ba162c 462 #ifndef ETHARP_SUPPORT_VLAN
segundo 0:ac1725ba162c 463 #define ETHARP_SUPPORT_VLAN 0
segundo 0:ac1725ba162c 464 #endif
segundo 0:ac1725ba162c 465
segundo 0:ac1725ba162c 466 /** LWIP_ETHERNET==1: enable ethernet support for PPPoE even though ARP
segundo 0:ac1725ba162c 467 * might be disabled
segundo 0:ac1725ba162c 468 */
segundo 0:ac1725ba162c 469 #ifndef LWIP_ETHERNET
segundo 0:ac1725ba162c 470 #define LWIP_ETHERNET (LWIP_ARP || PPPOE_SUPPORT)
segundo 0:ac1725ba162c 471 #endif
segundo 0:ac1725ba162c 472
segundo 0:ac1725ba162c 473 /** ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure
segundo 0:ac1725ba162c 474 * alignment of payload after that header. Since the header is 14 bytes long,
segundo 0:ac1725ba162c 475 * without this padding e.g. addresses in the IP header will not be aligned
segundo 0:ac1725ba162c 476 * on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.
segundo 0:ac1725ba162c 477 */
segundo 0:ac1725ba162c 478 #ifndef ETH_PAD_SIZE
segundo 0:ac1725ba162c 479 #define ETH_PAD_SIZE 0
segundo 0:ac1725ba162c 480 #endif
segundo 0:ac1725ba162c 481
segundo 0:ac1725ba162c 482 /** ETHARP_SUPPORT_STATIC_ENTRIES==1: enable code to support static ARP table
segundo 0:ac1725ba162c 483 * entries (using etharp_add_static_entry/etharp_remove_static_entry).
segundo 0:ac1725ba162c 484 */
segundo 0:ac1725ba162c 485 #ifndef ETHARP_SUPPORT_STATIC_ENTRIES
segundo 0:ac1725ba162c 486 #define ETHARP_SUPPORT_STATIC_ENTRIES 0
segundo 0:ac1725ba162c 487 #endif
segundo 0:ac1725ba162c 488
segundo 0:ac1725ba162c 489
segundo 0:ac1725ba162c 490 /*
segundo 0:ac1725ba162c 491 --------------------------------
segundo 0:ac1725ba162c 492 ---------- IP options ----------
segundo 0:ac1725ba162c 493 --------------------------------
segundo 0:ac1725ba162c 494 */
segundo 0:ac1725ba162c 495 /**
segundo 0:ac1725ba162c 496 * IP_FORWARD==1: Enables the ability to forward IP packets across network
segundo 0:ac1725ba162c 497 * interfaces. If you are going to run lwIP on a device with only one network
segundo 0:ac1725ba162c 498 * interface, define this to 0.
segundo 0:ac1725ba162c 499 */
segundo 0:ac1725ba162c 500 #ifndef IP_FORWARD
segundo 0:ac1725ba162c 501 #define IP_FORWARD 0
segundo 0:ac1725ba162c 502 #endif
segundo 0:ac1725ba162c 503
segundo 0:ac1725ba162c 504 /**
segundo 0:ac1725ba162c 505 * IP_OPTIONS_ALLOWED: Defines the behavior for IP options.
segundo 0:ac1725ba162c 506 * IP_OPTIONS_ALLOWED==0: All packets with IP options are dropped.
segundo 0:ac1725ba162c 507 * IP_OPTIONS_ALLOWED==1: IP options are allowed (but not parsed).
segundo 0:ac1725ba162c 508 */
segundo 0:ac1725ba162c 509 #ifndef IP_OPTIONS_ALLOWED
segundo 0:ac1725ba162c 510 #define IP_OPTIONS_ALLOWED 1
segundo 0:ac1725ba162c 511 #endif
segundo 0:ac1725ba162c 512
segundo 0:ac1725ba162c 513 /**
segundo 0:ac1725ba162c 514 * IP_REASSEMBLY==1: Reassemble incoming fragmented IP packets. Note that
segundo 0:ac1725ba162c 515 * this option does not affect outgoing packet sizes, which can be controlled
segundo 0:ac1725ba162c 516 * via IP_FRAG.
segundo 0:ac1725ba162c 517 */
segundo 0:ac1725ba162c 518 #ifndef IP_REASSEMBLY
segundo 0:ac1725ba162c 519 #define IP_REASSEMBLY 1
segundo 0:ac1725ba162c 520 #endif
segundo 0:ac1725ba162c 521
segundo 0:ac1725ba162c 522 /**
segundo 0:ac1725ba162c 523 * IP_FRAG==1: Fragment outgoing IP packets if their size exceeds MTU. Note
segundo 0:ac1725ba162c 524 * that this option does not affect incoming packet sizes, which can be
segundo 0:ac1725ba162c 525 * controlled via IP_REASSEMBLY.
segundo 0:ac1725ba162c 526 */
segundo 0:ac1725ba162c 527 #ifndef IP_FRAG
segundo 0:ac1725ba162c 528 #define IP_FRAG 1
segundo 0:ac1725ba162c 529 #endif
segundo 0:ac1725ba162c 530
segundo 0:ac1725ba162c 531 /**
segundo 0:ac1725ba162c 532 * IP_REASS_MAXAGE: Maximum time (in multiples of IP_TMR_INTERVAL - so seconds, normally)
segundo 0:ac1725ba162c 533 * a fragmented IP packet waits for all fragments to arrive. If not all fragments arrived
segundo 0:ac1725ba162c 534 * in this time, the whole packet is discarded.
segundo 0:ac1725ba162c 535 */
segundo 0:ac1725ba162c 536 #ifndef IP_REASS_MAXAGE
segundo 0:ac1725ba162c 537 #define IP_REASS_MAXAGE 3
segundo 0:ac1725ba162c 538 #endif
segundo 0:ac1725ba162c 539
segundo 0:ac1725ba162c 540 /**
segundo 0:ac1725ba162c 541 * IP_REASS_MAX_PBUFS: Total maximum amount of pbufs waiting to be reassembled.
segundo 0:ac1725ba162c 542 * Since the received pbufs are enqueued, be sure to configure
segundo 0:ac1725ba162c 543 * PBUF_POOL_SIZE > IP_REASS_MAX_PBUFS so that the stack is still able to receive
segundo 0:ac1725ba162c 544 * packets even if the maximum amount of fragments is enqueued for reassembly!
segundo 0:ac1725ba162c 545 */
segundo 0:ac1725ba162c 546 #ifndef IP_REASS_MAX_PBUFS
segundo 0:ac1725ba162c 547 #define IP_REASS_MAX_PBUFS 10
segundo 0:ac1725ba162c 548 #endif
segundo 0:ac1725ba162c 549
segundo 0:ac1725ba162c 550 /**
segundo 0:ac1725ba162c 551 * IP_FRAG_USES_STATIC_BUF==1: Use a static MTU-sized buffer for IP
segundo 0:ac1725ba162c 552 * fragmentation. Otherwise pbufs are allocated and reference the original
segundo 0:ac1725ba162c 553 * packet data to be fragmented (or with LWIP_NETIF_TX_SINGLE_PBUF==1,
segundo 0:ac1725ba162c 554 * new PBUF_RAM pbufs are used for fragments).
segundo 0:ac1725ba162c 555 * ATTENTION: IP_FRAG_USES_STATIC_BUF==1 may not be used for DMA-enabled MACs!
segundo 0:ac1725ba162c 556 */
segundo 0:ac1725ba162c 557 #ifndef IP_FRAG_USES_STATIC_BUF
segundo 0:ac1725ba162c 558 #define IP_FRAG_USES_STATIC_BUF 0
segundo 0:ac1725ba162c 559 #endif
segundo 0:ac1725ba162c 560
segundo 0:ac1725ba162c 561 /**
segundo 0:ac1725ba162c 562 * IP_FRAG_MAX_MTU: Assumed max MTU on any interface for IP frag buffer
segundo 0:ac1725ba162c 563 * (requires IP_FRAG_USES_STATIC_BUF==1)
segundo 0:ac1725ba162c 564 */
segundo 0:ac1725ba162c 565 #if IP_FRAG_USES_STATIC_BUF && !defined(IP_FRAG_MAX_MTU)
segundo 0:ac1725ba162c 566 #define IP_FRAG_MAX_MTU 1500
segundo 0:ac1725ba162c 567 #endif
segundo 0:ac1725ba162c 568
segundo 0:ac1725ba162c 569 /**
segundo 0:ac1725ba162c 570 * IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers.
segundo 0:ac1725ba162c 571 */
segundo 0:ac1725ba162c 572 #ifndef IP_DEFAULT_TTL
segundo 0:ac1725ba162c 573 #define IP_DEFAULT_TTL 255
segundo 0:ac1725ba162c 574 #endif
segundo 0:ac1725ba162c 575
segundo 0:ac1725ba162c 576 /**
segundo 0:ac1725ba162c 577 * IP_SOF_BROADCAST=1: Use the SOF_BROADCAST field to enable broadcast
segundo 0:ac1725ba162c 578 * filter per pcb on udp and raw send operations. To enable broadcast filter
segundo 0:ac1725ba162c 579 * on recv operations, you also have to set IP_SOF_BROADCAST_RECV=1.
segundo 0:ac1725ba162c 580 */
segundo 0:ac1725ba162c 581 #ifndef IP_SOF_BROADCAST
segundo 0:ac1725ba162c 582 #define IP_SOF_BROADCAST 0
segundo 0:ac1725ba162c 583 #endif
segundo 0:ac1725ba162c 584
segundo 0:ac1725ba162c 585 /**
segundo 0:ac1725ba162c 586 * IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast
segundo 0:ac1725ba162c 587 * filter on recv operations.
segundo 0:ac1725ba162c 588 */
segundo 0:ac1725ba162c 589 #ifndef IP_SOF_BROADCAST_RECV
segundo 0:ac1725ba162c 590 #define IP_SOF_BROADCAST_RECV 0
segundo 0:ac1725ba162c 591 #endif
segundo 0:ac1725ba162c 592
segundo 0:ac1725ba162c 593 /*
segundo 0:ac1725ba162c 594 ----------------------------------
segundo 0:ac1725ba162c 595 ---------- ICMP options ----------
segundo 0:ac1725ba162c 596 ----------------------------------
segundo 0:ac1725ba162c 597 */
segundo 0:ac1725ba162c 598 /**
segundo 0:ac1725ba162c 599 * LWIP_ICMP==1: Enable ICMP module inside the IP stack.
segundo 0:ac1725ba162c 600 * Be careful, disable that make your product non-compliant to RFC1122
segundo 0:ac1725ba162c 601 */
segundo 0:ac1725ba162c 602 #ifndef LWIP_ICMP
segundo 0:ac1725ba162c 603 #define LWIP_ICMP 1
segundo 0:ac1725ba162c 604 #endif
segundo 0:ac1725ba162c 605
segundo 0:ac1725ba162c 606 /**
segundo 0:ac1725ba162c 607 * ICMP_TTL: Default value for Time-To-Live used by ICMP packets.
segundo 0:ac1725ba162c 608 */
segundo 0:ac1725ba162c 609 #ifndef ICMP_TTL
segundo 0:ac1725ba162c 610 #define ICMP_TTL (IP_DEFAULT_TTL)
segundo 0:ac1725ba162c 611 #endif
segundo 0:ac1725ba162c 612
segundo 0:ac1725ba162c 613 /**
segundo 0:ac1725ba162c 614 * LWIP_BROADCAST_PING==1: respond to broadcast pings (default is unicast only)
segundo 0:ac1725ba162c 615 */
segundo 0:ac1725ba162c 616 #ifndef LWIP_BROADCAST_PING
segundo 0:ac1725ba162c 617 #define LWIP_BROADCAST_PING 0
segundo 0:ac1725ba162c 618 #endif
segundo 0:ac1725ba162c 619
segundo 0:ac1725ba162c 620 /**
segundo 0:ac1725ba162c 621 * LWIP_MULTICAST_PING==1: respond to multicast pings (default is unicast only)
segundo 0:ac1725ba162c 622 */
segundo 0:ac1725ba162c 623 #ifndef LWIP_MULTICAST_PING
segundo 0:ac1725ba162c 624 #define LWIP_MULTICAST_PING 0
segundo 0:ac1725ba162c 625 #endif
segundo 0:ac1725ba162c 626
segundo 0:ac1725ba162c 627 /*
segundo 0:ac1725ba162c 628 ---------------------------------
segundo 0:ac1725ba162c 629 ---------- RAW options ----------
segundo 0:ac1725ba162c 630 ---------------------------------
segundo 0:ac1725ba162c 631 */
segundo 0:ac1725ba162c 632 /**
segundo 0:ac1725ba162c 633 * LWIP_RAW==1: Enable application layer to hook into the IP layer itself.
segundo 0:ac1725ba162c 634 */
segundo 0:ac1725ba162c 635 #ifndef LWIP_RAW
segundo 0:ac1725ba162c 636 #define LWIP_RAW 1
segundo 0:ac1725ba162c 637 #endif
segundo 0:ac1725ba162c 638
segundo 0:ac1725ba162c 639 /**
segundo 0:ac1725ba162c 640 * LWIP_RAW==1: Enable application layer to hook into the IP layer itself.
segundo 0:ac1725ba162c 641 */
segundo 0:ac1725ba162c 642 #ifndef RAW_TTL
segundo 0:ac1725ba162c 643 #define RAW_TTL (IP_DEFAULT_TTL)
segundo 0:ac1725ba162c 644 #endif
segundo 0:ac1725ba162c 645
segundo 0:ac1725ba162c 646 /*
segundo 0:ac1725ba162c 647 ----------------------------------
segundo 0:ac1725ba162c 648 ---------- DHCP options ----------
segundo 0:ac1725ba162c 649 ----------------------------------
segundo 0:ac1725ba162c 650 */
segundo 0:ac1725ba162c 651 /**
segundo 0:ac1725ba162c 652 * LWIP_DHCP==1: Enable DHCP module.
segundo 0:ac1725ba162c 653 */
segundo 0:ac1725ba162c 654 #ifndef LWIP_DHCP
segundo 0:ac1725ba162c 655 #define LWIP_DHCP 0
segundo 0:ac1725ba162c 656 #endif
segundo 0:ac1725ba162c 657
segundo 0:ac1725ba162c 658 /**
segundo 0:ac1725ba162c 659 * DHCP_DOES_ARP_CHECK==1: Do an ARP check on the offered address.
segundo 0:ac1725ba162c 660 */
segundo 0:ac1725ba162c 661 #ifndef DHCP_DOES_ARP_CHECK
segundo 0:ac1725ba162c 662 #define DHCP_DOES_ARP_CHECK ((LWIP_DHCP) && (LWIP_ARP))
segundo 0:ac1725ba162c 663 #endif
segundo 0:ac1725ba162c 664
segundo 0:ac1725ba162c 665 /*
segundo 0:ac1725ba162c 666 ------------------------------------
segundo 0:ac1725ba162c 667 ---------- AUTOIP options ----------
segundo 0:ac1725ba162c 668 ------------------------------------
segundo 0:ac1725ba162c 669 */
segundo 0:ac1725ba162c 670 /**
segundo 0:ac1725ba162c 671 * LWIP_AUTOIP==1: Enable AUTOIP module.
segundo 0:ac1725ba162c 672 */
segundo 0:ac1725ba162c 673 #ifndef LWIP_AUTOIP
segundo 0:ac1725ba162c 674 #define LWIP_AUTOIP 0
segundo 0:ac1725ba162c 675 #endif
segundo 0:ac1725ba162c 676
segundo 0:ac1725ba162c 677 /**
segundo 0:ac1725ba162c 678 * LWIP_DHCP_AUTOIP_COOP==1: Allow DHCP and AUTOIP to be both enabled on
segundo 0:ac1725ba162c 679 * the same interface at the same time.
segundo 0:ac1725ba162c 680 */
segundo 0:ac1725ba162c 681 #ifndef LWIP_DHCP_AUTOIP_COOP
segundo 0:ac1725ba162c 682 #define LWIP_DHCP_AUTOIP_COOP 0
segundo 0:ac1725ba162c 683 #endif
segundo 0:ac1725ba162c 684
segundo 0:ac1725ba162c 685 /**
segundo 0:ac1725ba162c 686 * LWIP_DHCP_AUTOIP_COOP_TRIES: Set to the number of DHCP DISCOVER probes
segundo 0:ac1725ba162c 687 * that should be sent before falling back on AUTOIP. This can be set
segundo 0:ac1725ba162c 688 * as low as 1 to get an AutoIP address very quickly, but you should
segundo 0:ac1725ba162c 689 * be prepared to handle a changing IP address when DHCP overrides
segundo 0:ac1725ba162c 690 * AutoIP.
segundo 0:ac1725ba162c 691 */
segundo 0:ac1725ba162c 692 #ifndef LWIP_DHCP_AUTOIP_COOP_TRIES
segundo 0:ac1725ba162c 693 #define LWIP_DHCP_AUTOIP_COOP_TRIES 9
segundo 0:ac1725ba162c 694 #endif
segundo 0:ac1725ba162c 695
segundo 0:ac1725ba162c 696 /*
segundo 0:ac1725ba162c 697 ----------------------------------
segundo 0:ac1725ba162c 698 ---------- SNMP options ----------
segundo 0:ac1725ba162c 699 ----------------------------------
segundo 0:ac1725ba162c 700 */
segundo 0:ac1725ba162c 701 /**
segundo 0:ac1725ba162c 702 * LWIP_SNMP==1: Turn on SNMP module. UDP must be available for SNMP
segundo 0:ac1725ba162c 703 * transport.
segundo 0:ac1725ba162c 704 */
segundo 0:ac1725ba162c 705 #ifndef LWIP_SNMP
segundo 0:ac1725ba162c 706 #define LWIP_SNMP 0
segundo 0:ac1725ba162c 707 #endif
segundo 0:ac1725ba162c 708
segundo 0:ac1725ba162c 709 /**
segundo 0:ac1725ba162c 710 * SNMP_CONCURRENT_REQUESTS: Number of concurrent requests the module will
segundo 0:ac1725ba162c 711 * allow. At least one request buffer is required.
segundo 0:ac1725ba162c 712 * Does not have to be changed unless external MIBs answer request asynchronously
segundo 0:ac1725ba162c 713 */
segundo 0:ac1725ba162c 714 #ifndef SNMP_CONCURRENT_REQUESTS
segundo 0:ac1725ba162c 715 #define SNMP_CONCURRENT_REQUESTS 1
segundo 0:ac1725ba162c 716 #endif
segundo 0:ac1725ba162c 717
segundo 0:ac1725ba162c 718 /**
segundo 0:ac1725ba162c 719 * SNMP_TRAP_DESTINATIONS: Number of trap destinations. At least one trap
segundo 0:ac1725ba162c 720 * destination is required
segundo 0:ac1725ba162c 721 */
segundo 0:ac1725ba162c 722 #ifndef SNMP_TRAP_DESTINATIONS
segundo 0:ac1725ba162c 723 #define SNMP_TRAP_DESTINATIONS 1
segundo 0:ac1725ba162c 724 #endif
segundo 0:ac1725ba162c 725
segundo 0:ac1725ba162c 726 /**
segundo 0:ac1725ba162c 727 * SNMP_PRIVATE_MIB:
segundo 0:ac1725ba162c 728 * When using a private MIB, you have to create a file 'private_mib.h' that contains
segundo 0:ac1725ba162c 729 * a 'struct mib_array_node mib_private' which contains your MIB.
segundo 0:ac1725ba162c 730 */
segundo 0:ac1725ba162c 731 #ifndef SNMP_PRIVATE_MIB
segundo 0:ac1725ba162c 732 #define SNMP_PRIVATE_MIB 0
segundo 0:ac1725ba162c 733 #endif
segundo 0:ac1725ba162c 734
segundo 0:ac1725ba162c 735 /**
segundo 0:ac1725ba162c 736 * Only allow SNMP write actions that are 'safe' (e.g. disabeling netifs is not
segundo 0:ac1725ba162c 737 * a safe action and disabled when SNMP_SAFE_REQUESTS = 1).
segundo 0:ac1725ba162c 738 * Unsafe requests are disabled by default!
segundo 0:ac1725ba162c 739 */
segundo 0:ac1725ba162c 740 #ifndef SNMP_SAFE_REQUESTS
segundo 0:ac1725ba162c 741 #define SNMP_SAFE_REQUESTS 1
segundo 0:ac1725ba162c 742 #endif
segundo 0:ac1725ba162c 743
segundo 0:ac1725ba162c 744 /**
segundo 0:ac1725ba162c 745 * The maximum length of strings used. This affects the size of
segundo 0:ac1725ba162c 746 * MEMP_SNMP_VALUE elements.
segundo 0:ac1725ba162c 747 */
segundo 0:ac1725ba162c 748 #ifndef SNMP_MAX_OCTET_STRING_LEN
segundo 0:ac1725ba162c 749 #define SNMP_MAX_OCTET_STRING_LEN 127
segundo 0:ac1725ba162c 750 #endif
segundo 0:ac1725ba162c 751
segundo 0:ac1725ba162c 752 /**
segundo 0:ac1725ba162c 753 * The maximum depth of the SNMP tree.
segundo 0:ac1725ba162c 754 * With private MIBs enabled, this depends on your MIB!
segundo 0:ac1725ba162c 755 * This affects the size of MEMP_SNMP_VALUE elements.
segundo 0:ac1725ba162c 756 */
segundo 0:ac1725ba162c 757 #ifndef SNMP_MAX_TREE_DEPTH
segundo 0:ac1725ba162c 758 #define SNMP_MAX_TREE_DEPTH 15
segundo 0:ac1725ba162c 759 #endif
segundo 0:ac1725ba162c 760
segundo 0:ac1725ba162c 761 /**
segundo 0:ac1725ba162c 762 * The size of the MEMP_SNMP_VALUE elements, normally calculated from
segundo 0:ac1725ba162c 763 * SNMP_MAX_OCTET_STRING_LEN and SNMP_MAX_TREE_DEPTH.
segundo 0:ac1725ba162c 764 */
segundo 0:ac1725ba162c 765 #ifndef SNMP_MAX_VALUE_SIZE
segundo 0:ac1725ba162c 766 #define SNMP_MAX_VALUE_SIZE LWIP_MAX((SNMP_MAX_OCTET_STRING_LEN)+1, sizeof(s32_t)*(SNMP_MAX_TREE_DEPTH))
segundo 0:ac1725ba162c 767 #endif
segundo 0:ac1725ba162c 768
segundo 0:ac1725ba162c 769 /*
segundo 0:ac1725ba162c 770 ----------------------------------
segundo 0:ac1725ba162c 771 ---------- IGMP options ----------
segundo 0:ac1725ba162c 772 ----------------------------------
segundo 0:ac1725ba162c 773 */
segundo 0:ac1725ba162c 774 /**
segundo 0:ac1725ba162c 775 * LWIP_IGMP==1: Turn on IGMP module.
segundo 0:ac1725ba162c 776 */
segundo 0:ac1725ba162c 777 #ifndef LWIP_IGMP
segundo 0:ac1725ba162c 778 #define LWIP_IGMP 0
segundo 0:ac1725ba162c 779 #endif
segundo 0:ac1725ba162c 780
segundo 0:ac1725ba162c 781 /*
segundo 0:ac1725ba162c 782 ----------------------------------
segundo 0:ac1725ba162c 783 ---------- DNS options -----------
segundo 0:ac1725ba162c 784 ----------------------------------
segundo 0:ac1725ba162c 785 */
segundo 0:ac1725ba162c 786 /**
segundo 0:ac1725ba162c 787 * LWIP_DNS==1: Turn on DNS module. UDP must be available for DNS
segundo 0:ac1725ba162c 788 * transport.
segundo 0:ac1725ba162c 789 */
segundo 0:ac1725ba162c 790 #ifndef LWIP_DNS
segundo 0:ac1725ba162c 791 #define LWIP_DNS 0
segundo 0:ac1725ba162c 792 #endif
segundo 0:ac1725ba162c 793
segundo 0:ac1725ba162c 794 /** DNS maximum number of entries to maintain locally. */
segundo 0:ac1725ba162c 795 #ifndef DNS_TABLE_SIZE
segundo 0:ac1725ba162c 796 #define DNS_TABLE_SIZE 4
segundo 0:ac1725ba162c 797 #endif
segundo 0:ac1725ba162c 798
segundo 0:ac1725ba162c 799 /** DNS maximum host name length supported in the name table. */
segundo 0:ac1725ba162c 800 #ifndef DNS_MAX_NAME_LENGTH
segundo 0:ac1725ba162c 801 #define DNS_MAX_NAME_LENGTH 256
segundo 0:ac1725ba162c 802 #endif
segundo 0:ac1725ba162c 803
segundo 0:ac1725ba162c 804 /** The maximum of DNS servers */
segundo 0:ac1725ba162c 805 #ifndef DNS_MAX_SERVERS
segundo 0:ac1725ba162c 806 #define DNS_MAX_SERVERS 2
segundo 0:ac1725ba162c 807 #endif
segundo 0:ac1725ba162c 808
segundo 0:ac1725ba162c 809 /** DNS do a name checking between the query and the response. */
segundo 0:ac1725ba162c 810 #ifndef DNS_DOES_NAME_CHECK
segundo 0:ac1725ba162c 811 #define DNS_DOES_NAME_CHECK 1
segundo 0:ac1725ba162c 812 #endif
segundo 0:ac1725ba162c 813
segundo 0:ac1725ba162c 814 /** DNS message max. size. Default value is RFC compliant. */
segundo 0:ac1725ba162c 815 #ifndef DNS_MSG_SIZE
segundo 0:ac1725ba162c 816 #define DNS_MSG_SIZE 512
segundo 0:ac1725ba162c 817 #endif
segundo 0:ac1725ba162c 818
segundo 0:ac1725ba162c 819 /** DNS_LOCAL_HOSTLIST: Implements a local host-to-address list. If enabled,
segundo 0:ac1725ba162c 820 * you have to define
segundo 0:ac1725ba162c 821 * #define DNS_LOCAL_HOSTLIST_INIT {{"host1", 0x123}, {"host2", 0x234}}
segundo 0:ac1725ba162c 822 * (an array of structs name/address, where address is an u32_t in network
segundo 0:ac1725ba162c 823 * byte order).
segundo 0:ac1725ba162c 824 *
segundo 0:ac1725ba162c 825 * Instead, you can also use an external function:
segundo 0:ac1725ba162c 826 * #define DNS_LOOKUP_LOCAL_EXTERN(x) extern u32_t my_lookup_function(const char *name)
segundo 0:ac1725ba162c 827 * that returns the IP address or INADDR_NONE if not found.
segundo 0:ac1725ba162c 828 */
segundo 0:ac1725ba162c 829 #ifndef DNS_LOCAL_HOSTLIST
segundo 0:ac1725ba162c 830 #define DNS_LOCAL_HOSTLIST 0
segundo 0:ac1725ba162c 831 #endif /* DNS_LOCAL_HOSTLIST */
segundo 0:ac1725ba162c 832
segundo 0:ac1725ba162c 833 /** If this is turned on, the local host-list can be dynamically changed
segundo 0:ac1725ba162c 834 * at runtime. */
segundo 0:ac1725ba162c 835 #ifndef DNS_LOCAL_HOSTLIST_IS_DYNAMIC
segundo 0:ac1725ba162c 836 #define DNS_LOCAL_HOSTLIST_IS_DYNAMIC 0
segundo 0:ac1725ba162c 837 #endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */
segundo 0:ac1725ba162c 838
segundo 0:ac1725ba162c 839 /*
segundo 0:ac1725ba162c 840 ---------------------------------
segundo 0:ac1725ba162c 841 ---------- UDP options ----------
segundo 0:ac1725ba162c 842 ---------------------------------
segundo 0:ac1725ba162c 843 */
segundo 0:ac1725ba162c 844 /**
segundo 0:ac1725ba162c 845 * LWIP_UDP==1: Turn on UDP.
segundo 0:ac1725ba162c 846 */
segundo 0:ac1725ba162c 847 #ifndef LWIP_UDP
segundo 0:ac1725ba162c 848 #define LWIP_UDP 1
segundo 0:ac1725ba162c 849 #endif
segundo 0:ac1725ba162c 850
segundo 0:ac1725ba162c 851 /**
segundo 0:ac1725ba162c 852 * LWIP_UDPLITE==1: Turn on UDP-Lite. (Requires LWIP_UDP)
segundo 0:ac1725ba162c 853 */
segundo 0:ac1725ba162c 854 #ifndef LWIP_UDPLITE
segundo 0:ac1725ba162c 855 #define LWIP_UDPLITE 0
segundo 0:ac1725ba162c 856 #endif
segundo 0:ac1725ba162c 857
segundo 0:ac1725ba162c 858 /**
segundo 0:ac1725ba162c 859 * UDP_TTL: Default Time-To-Live value.
segundo 0:ac1725ba162c 860 */
segundo 0:ac1725ba162c 861 #ifndef UDP_TTL
segundo 0:ac1725ba162c 862 #define UDP_TTL (IP_DEFAULT_TTL)
segundo 0:ac1725ba162c 863 #endif
segundo 0:ac1725ba162c 864
segundo 0:ac1725ba162c 865 /**
segundo 0:ac1725ba162c 866 * LWIP_NETBUF_RECVINFO==1: append destination addr and port to every netbuf.
segundo 0:ac1725ba162c 867 */
segundo 0:ac1725ba162c 868 #ifndef LWIP_NETBUF_RECVINFO
segundo 0:ac1725ba162c 869 #define LWIP_NETBUF_RECVINFO 0
segundo 0:ac1725ba162c 870 #endif
segundo 0:ac1725ba162c 871
segundo 0:ac1725ba162c 872 /*
segundo 0:ac1725ba162c 873 ---------------------------------
segundo 0:ac1725ba162c 874 ---------- TCP options ----------
segundo 0:ac1725ba162c 875 ---------------------------------
segundo 0:ac1725ba162c 876 */
segundo 0:ac1725ba162c 877 /**
segundo 0:ac1725ba162c 878 * LWIP_TCP==1: Turn on TCP.
segundo 0:ac1725ba162c 879 */
segundo 0:ac1725ba162c 880 #ifndef LWIP_TCP
segundo 0:ac1725ba162c 881 #define LWIP_TCP 1
segundo 0:ac1725ba162c 882 #endif
segundo 0:ac1725ba162c 883
segundo 0:ac1725ba162c 884 /**
segundo 0:ac1725ba162c 885 * TCP_TTL: Default Time-To-Live value.
segundo 0:ac1725ba162c 886 */
segundo 0:ac1725ba162c 887 #ifndef TCP_TTL
segundo 0:ac1725ba162c 888 #define TCP_TTL (IP_DEFAULT_TTL)
segundo 0:ac1725ba162c 889 #endif
segundo 0:ac1725ba162c 890
segundo 0:ac1725ba162c 891 /**
segundo 0:ac1725ba162c 892 * TCP_WND: The size of a TCP window. This must be at least
segundo 0:ac1725ba162c 893 * (2 * TCP_MSS) for things to work well
segundo 0:ac1725ba162c 894 */
segundo 0:ac1725ba162c 895 #ifndef TCP_WND
segundo 0:ac1725ba162c 896 #define TCP_WND (4 * TCP_MSS)
segundo 0:ac1725ba162c 897 #endif
segundo 0:ac1725ba162c 898
segundo 0:ac1725ba162c 899 /**
segundo 0:ac1725ba162c 900 * TCP_MAXRTX: Maximum number of retransmissions of data segments.
segundo 0:ac1725ba162c 901 */
segundo 0:ac1725ba162c 902 #ifndef TCP_MAXRTX
segundo 0:ac1725ba162c 903 #define TCP_MAXRTX 12
segundo 0:ac1725ba162c 904 #endif
segundo 0:ac1725ba162c 905
segundo 0:ac1725ba162c 906 /**
segundo 0:ac1725ba162c 907 * TCP_SYNMAXRTX: Maximum number of retransmissions of SYN segments.
segundo 0:ac1725ba162c 908 */
segundo 0:ac1725ba162c 909 #ifndef TCP_SYNMAXRTX
segundo 0:ac1725ba162c 910 #define TCP_SYNMAXRTX 6
segundo 0:ac1725ba162c 911 #endif
segundo 0:ac1725ba162c 912
segundo 0:ac1725ba162c 913 /**
segundo 0:ac1725ba162c 914 * TCP_QUEUE_OOSEQ==1: TCP will queue segments that arrive out of order.
segundo 0:ac1725ba162c 915 * Define to 0 if your device is low on memory.
segundo 0:ac1725ba162c 916 */
segundo 0:ac1725ba162c 917 #ifndef TCP_QUEUE_OOSEQ
segundo 0:ac1725ba162c 918 #define TCP_QUEUE_OOSEQ (LWIP_TCP)
segundo 0:ac1725ba162c 919 #endif
segundo 0:ac1725ba162c 920
segundo 0:ac1725ba162c 921 /**
segundo 0:ac1725ba162c 922 * TCP_MSS: TCP Maximum segment size. (default is 536, a conservative default,
segundo 0:ac1725ba162c 923 * you might want to increase this.)
segundo 0:ac1725ba162c 924 * For the receive side, this MSS is advertised to the remote side
segundo 0:ac1725ba162c 925 * when opening a connection. For the transmit size, this MSS sets
segundo 0:ac1725ba162c 926 * an upper limit on the MSS advertised by the remote host.
segundo 0:ac1725ba162c 927 */
segundo 0:ac1725ba162c 928 #ifndef TCP_MSS
segundo 0:ac1725ba162c 929 #define TCP_MSS 536
segundo 0:ac1725ba162c 930 #endif
segundo 0:ac1725ba162c 931
segundo 0:ac1725ba162c 932 /**
segundo 0:ac1725ba162c 933 * TCP_CALCULATE_EFF_SEND_MSS: "The maximum size of a segment that TCP really
segundo 0:ac1725ba162c 934 * sends, the 'effective send MSS,' MUST be the smaller of the send MSS (which
segundo 0:ac1725ba162c 935 * reflects the available reassembly buffer size at the remote host) and the
segundo 0:ac1725ba162c 936 * largest size permitted by the IP layer" (RFC 1122)
segundo 0:ac1725ba162c 937 * Setting this to 1 enables code that checks TCP_MSS against the MTU of the
segundo 0:ac1725ba162c 938 * netif used for a connection and limits the MSS if it would be too big otherwise.
segundo 0:ac1725ba162c 939 */
segundo 0:ac1725ba162c 940 #ifndef TCP_CALCULATE_EFF_SEND_MSS
segundo 0:ac1725ba162c 941 #define TCP_CALCULATE_EFF_SEND_MSS 1
segundo 0:ac1725ba162c 942 #endif
segundo 0:ac1725ba162c 943
segundo 0:ac1725ba162c 944
segundo 0:ac1725ba162c 945 /**
segundo 0:ac1725ba162c 946 * TCP_SND_BUF: TCP sender buffer space (bytes).
segundo 0:ac1725ba162c 947 */
segundo 0:ac1725ba162c 948 #ifndef TCP_SND_BUF
segundo 0:ac1725ba162c 949 #define TCP_SND_BUF 256
segundo 0:ac1725ba162c 950 #endif
segundo 0:ac1725ba162c 951
segundo 0:ac1725ba162c 952 /**
segundo 0:ac1725ba162c 953 * TCP_SND_QUEUELEN: TCP sender buffer space (pbufs). This must be at least
segundo 0:ac1725ba162c 954 * as much as (2 * TCP_SND_BUF/TCP_MSS) for things to work.
segundo 0:ac1725ba162c 955 */
segundo 0:ac1725ba162c 956 #ifndef TCP_SND_QUEUELEN
segundo 0:ac1725ba162c 957 #define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS))
segundo 0:ac1725ba162c 958 #endif
segundo 0:ac1725ba162c 959
segundo 0:ac1725ba162c 960 /**
segundo 0:ac1725ba162c 961 * TCP_SNDLOWAT: TCP writable space (bytes). This must be less than
segundo 0:ac1725ba162c 962 * TCP_SND_BUF. It is the amount of space which must be available in the
segundo 0:ac1725ba162c 963 * TCP snd_buf for select to return writable (combined with TCP_SNDQUEUELOWAT).
segundo 0:ac1725ba162c 964 */
segundo 0:ac1725ba162c 965 #ifndef TCP_SNDLOWAT
segundo 0:ac1725ba162c 966 #define TCP_SNDLOWAT ((TCP_SND_BUF)/2)
segundo 0:ac1725ba162c 967 #endif
segundo 0:ac1725ba162c 968
segundo 0:ac1725ba162c 969 /**
segundo 0:ac1725ba162c 970 * TCP_SNDQUEUELOWAT: TCP writable bufs (pbuf count). This must be grater
segundo 0:ac1725ba162c 971 * than TCP_SND_QUEUELEN. If the number of pbufs queued on a pcb drops below
segundo 0:ac1725ba162c 972 * this number, select returns writable (combined with TCP_SNDLOWAT).
segundo 0:ac1725ba162c 973 */
segundo 0:ac1725ba162c 974 #ifndef TCP_SNDQUEUELOWAT
segundo 0:ac1725ba162c 975 #define TCP_SNDQUEUELOWAT ((TCP_SND_QUEUELEN)/2)
segundo 0:ac1725ba162c 976 #endif
segundo 0:ac1725ba162c 977
segundo 0:ac1725ba162c 978 /**
segundo 0:ac1725ba162c 979 * TCP_LISTEN_BACKLOG: Enable the backlog option for tcp listen pcb.
segundo 0:ac1725ba162c 980 */
segundo 0:ac1725ba162c 981 #ifndef TCP_LISTEN_BACKLOG
segundo 0:ac1725ba162c 982 #define TCP_LISTEN_BACKLOG 0
segundo 0:ac1725ba162c 983 #endif
segundo 0:ac1725ba162c 984
segundo 0:ac1725ba162c 985 /**
segundo 0:ac1725ba162c 986 * The maximum allowed backlog for TCP listen netconns.
segundo 0:ac1725ba162c 987 * This backlog is used unless another is explicitly specified.
segundo 0:ac1725ba162c 988 * 0xff is the maximum (u8_t).
segundo 0:ac1725ba162c 989 */
segundo 0:ac1725ba162c 990 #ifndef TCP_DEFAULT_LISTEN_BACKLOG
segundo 0:ac1725ba162c 991 #define TCP_DEFAULT_LISTEN_BACKLOG 0xff
segundo 0:ac1725ba162c 992 #endif
segundo 0:ac1725ba162c 993
segundo 0:ac1725ba162c 994 /**
segundo 0:ac1725ba162c 995 * TCP_OVERSIZE: The maximum number of bytes that tcp_write may
segundo 0:ac1725ba162c 996 * allocate ahead of time in an attempt to create shorter pbuf chains
segundo 0:ac1725ba162c 997 * for transmission. The meaningful range is 0 to TCP_MSS. Some
segundo 0:ac1725ba162c 998 * suggested values are:
segundo 0:ac1725ba162c 999 *
segundo 0:ac1725ba162c 1000 * 0: Disable oversized allocation. Each tcp_write() allocates a new
segundo 0:ac1725ba162c 1001 pbuf (old behaviour).
segundo 0:ac1725ba162c 1002 * 1: Allocate size-aligned pbufs with minimal excess. Use this if your
segundo 0:ac1725ba162c 1003 * scatter-gather DMA requires aligned fragments.
segundo 0:ac1725ba162c 1004 * 128: Limit the pbuf/memory overhead to 20%.
segundo 0:ac1725ba162c 1005 * TCP_MSS: Try to create unfragmented TCP packets.
segundo 0:ac1725ba162c 1006 * TCP_MSS/4: Try to create 4 fragments or less per TCP packet.
segundo 0:ac1725ba162c 1007 */
segundo 0:ac1725ba162c 1008 #ifndef TCP_OVERSIZE
segundo 0:ac1725ba162c 1009 #define TCP_OVERSIZE TCP_MSS
segundo 0:ac1725ba162c 1010 #endif
segundo 0:ac1725ba162c 1011
segundo 0:ac1725ba162c 1012 /**
segundo 0:ac1725ba162c 1013 * LWIP_TCP_TIMESTAMPS==1: support the TCP timestamp option.
segundo 0:ac1725ba162c 1014 */
segundo 0:ac1725ba162c 1015 #ifndef LWIP_TCP_TIMESTAMPS
segundo 0:ac1725ba162c 1016 #define LWIP_TCP_TIMESTAMPS 0
segundo 0:ac1725ba162c 1017 #endif
segundo 0:ac1725ba162c 1018
segundo 0:ac1725ba162c 1019 /**
segundo 0:ac1725ba162c 1020 * TCP_WND_UPDATE_THRESHOLD: difference in window to trigger an
segundo 0:ac1725ba162c 1021 * explicit window update
segundo 0:ac1725ba162c 1022 */
segundo 0:ac1725ba162c 1023 #ifndef TCP_WND_UPDATE_THRESHOLD
segundo 0:ac1725ba162c 1024 #define TCP_WND_UPDATE_THRESHOLD (TCP_WND / 4)
segundo 0:ac1725ba162c 1025 #endif
segundo 0:ac1725ba162c 1026
segundo 0:ac1725ba162c 1027 /**
segundo 0:ac1725ba162c 1028 * LWIP_EVENT_API and LWIP_CALLBACK_API: Only one of these should be set to 1.
segundo 0:ac1725ba162c 1029 * LWIP_EVENT_API==1: The user defines lwip_tcp_event() to receive all
segundo 0:ac1725ba162c 1030 * events (accept, sent, etc) that happen in the system.
segundo 0:ac1725ba162c 1031 * LWIP_CALLBACK_API==1: The PCB callback function is called directly
segundo 0:ac1725ba162c 1032 * for the event.
segundo 0:ac1725ba162c 1033 */
segundo 0:ac1725ba162c 1034 #ifndef LWIP_EVENT_API
segundo 0:ac1725ba162c 1035 #define LWIP_EVENT_API 0
segundo 0:ac1725ba162c 1036 #define LWIP_CALLBACK_API 1
segundo 0:ac1725ba162c 1037 #else
segundo 0:ac1725ba162c 1038 #define LWIP_EVENT_API 1
segundo 0:ac1725ba162c 1039 #define LWIP_CALLBACK_API 0
segundo 0:ac1725ba162c 1040 #endif
segundo 0:ac1725ba162c 1041
segundo 0:ac1725ba162c 1042
segundo 0:ac1725ba162c 1043 /*
segundo 0:ac1725ba162c 1044 ----------------------------------
segundo 0:ac1725ba162c 1045 ---------- Pbuf options ----------
segundo 0:ac1725ba162c 1046 ----------------------------------
segundo 0:ac1725ba162c 1047 */
segundo 0:ac1725ba162c 1048 /**
segundo 0:ac1725ba162c 1049 * PBUF_LINK_HLEN: the number of bytes that should be allocated for a
segundo 0:ac1725ba162c 1050 * link level header. The default is 14, the standard value for
segundo 0:ac1725ba162c 1051 * Ethernet.
segundo 0:ac1725ba162c 1052 */
segundo 0:ac1725ba162c 1053 #ifndef PBUF_LINK_HLEN
segundo 0:ac1725ba162c 1054 #define PBUF_LINK_HLEN (14 + ETH_PAD_SIZE)
segundo 0:ac1725ba162c 1055 #endif
segundo 0:ac1725ba162c 1056
segundo 0:ac1725ba162c 1057 /**
segundo 0:ac1725ba162c 1058 * PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. The default is
segundo 0:ac1725ba162c 1059 * designed to accomodate single full size TCP frame in one pbuf, including
segundo 0:ac1725ba162c 1060 * TCP_MSS, IP header, and link header.
segundo 0:ac1725ba162c 1061 */
segundo 0:ac1725ba162c 1062 #ifndef PBUF_POOL_BUFSIZE
segundo 0:ac1725ba162c 1063 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)
segundo 0:ac1725ba162c 1064 #endif
segundo 0:ac1725ba162c 1065
segundo 0:ac1725ba162c 1066 /*
segundo 0:ac1725ba162c 1067 ------------------------------------------------
segundo 0:ac1725ba162c 1068 ---------- Network Interfaces options ----------
segundo 0:ac1725ba162c 1069 ------------------------------------------------
segundo 0:ac1725ba162c 1070 */
segundo 0:ac1725ba162c 1071 /**
segundo 0:ac1725ba162c 1072 * LWIP_NETIF_HOSTNAME==1: use DHCP_OPTION_HOSTNAME with netif's hostname
segundo 0:ac1725ba162c 1073 * field.
segundo 0:ac1725ba162c 1074 */
segundo 0:ac1725ba162c 1075 #ifndef LWIP_NETIF_HOSTNAME
segundo 0:ac1725ba162c 1076 #define LWIP_NETIF_HOSTNAME 0
segundo 0:ac1725ba162c 1077 #endif
segundo 0:ac1725ba162c 1078
segundo 0:ac1725ba162c 1079 /**
segundo 0:ac1725ba162c 1080 * LWIP_NETIF_API==1: Support netif api (in netifapi.c)
segundo 0:ac1725ba162c 1081 */
segundo 0:ac1725ba162c 1082 #ifndef LWIP_NETIF_API
segundo 0:ac1725ba162c 1083 #define LWIP_NETIF_API 0
segundo 0:ac1725ba162c 1084 #endif
segundo 0:ac1725ba162c 1085
segundo 0:ac1725ba162c 1086 /**
segundo 0:ac1725ba162c 1087 * LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface
segundo 0:ac1725ba162c 1088 * changes its up/down status (i.e., due to DHCP IP acquistion)
segundo 0:ac1725ba162c 1089 */
segundo 0:ac1725ba162c 1090 #ifndef LWIP_NETIF_STATUS_CALLBACK
segundo 0:ac1725ba162c 1091 #define LWIP_NETIF_STATUS_CALLBACK 0
segundo 0:ac1725ba162c 1092 #endif
segundo 0:ac1725ba162c 1093
segundo 0:ac1725ba162c 1094 /**
segundo 0:ac1725ba162c 1095 * LWIP_NETIF_LINK_CALLBACK==1: Support a callback function from an interface
segundo 0:ac1725ba162c 1096 * whenever the link changes (i.e., link down)
segundo 0:ac1725ba162c 1097 */
segundo 0:ac1725ba162c 1098 #ifndef LWIP_NETIF_LINK_CALLBACK
segundo 0:ac1725ba162c 1099 #define LWIP_NETIF_LINK_CALLBACK 0
segundo 0:ac1725ba162c 1100 #endif
segundo 0:ac1725ba162c 1101
segundo 0:ac1725ba162c 1102 /**
segundo 0:ac1725ba162c 1103 * LWIP_NETIF_HWADDRHINT==1: Cache link-layer-address hints (e.g. table
segundo 0:ac1725ba162c 1104 * indices) in struct netif. TCP and UDP can make use of this to prevent
segundo 0:ac1725ba162c 1105 * scanning the ARP table for every sent packet. While this is faster for big
segundo 0:ac1725ba162c 1106 * ARP tables or many concurrent connections, it might be counterproductive
segundo 0:ac1725ba162c 1107 * if you have a tiny ARP table or if there never are concurrent connections.
segundo 0:ac1725ba162c 1108 */
segundo 0:ac1725ba162c 1109 #ifndef LWIP_NETIF_HWADDRHINT
segundo 0:ac1725ba162c 1110 #define LWIP_NETIF_HWADDRHINT 0
segundo 0:ac1725ba162c 1111 #endif
segundo 0:ac1725ba162c 1112
segundo 0:ac1725ba162c 1113 /**
segundo 0:ac1725ba162c 1114 * LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP
segundo 0:ac1725ba162c 1115 * address equal to the netif IP address, looping them back up the stack.
segundo 0:ac1725ba162c 1116 */
segundo 0:ac1725ba162c 1117 #ifndef LWIP_NETIF_LOOPBACK
segundo 0:ac1725ba162c 1118 #define LWIP_NETIF_LOOPBACK 0
segundo 0:ac1725ba162c 1119 #endif
segundo 0:ac1725ba162c 1120
segundo 0:ac1725ba162c 1121 /**
segundo 0:ac1725ba162c 1122 * LWIP_LOOPBACK_MAX_PBUFS: Maximum number of pbufs on queue for loopback
segundo 0:ac1725ba162c 1123 * sending for each netif (0 = disabled)
segundo 0:ac1725ba162c 1124 */
segundo 0:ac1725ba162c 1125 #ifndef LWIP_LOOPBACK_MAX_PBUFS
segundo 0:ac1725ba162c 1126 #define LWIP_LOOPBACK_MAX_PBUFS 0
segundo 0:ac1725ba162c 1127 #endif
segundo 0:ac1725ba162c 1128
segundo 0:ac1725ba162c 1129 /**
segundo 0:ac1725ba162c 1130 * LWIP_NETIF_LOOPBACK_MULTITHREADING: Indicates whether threading is enabled in
segundo 0:ac1725ba162c 1131 * the system, as netifs must change how they behave depending on this setting
segundo 0:ac1725ba162c 1132 * for the LWIP_NETIF_LOOPBACK option to work.
segundo 0:ac1725ba162c 1133 * Setting this is needed to avoid reentering non-reentrant functions like
segundo 0:ac1725ba162c 1134 * tcp_input().
segundo 0:ac1725ba162c 1135 * LWIP_NETIF_LOOPBACK_MULTITHREADING==1: Indicates that the user is using a
segundo 0:ac1725ba162c 1136 * multithreaded environment like tcpip.c. In this case, netif->input()
segundo 0:ac1725ba162c 1137 * is called directly.
segundo 0:ac1725ba162c 1138 * LWIP_NETIF_LOOPBACK_MULTITHREADING==0: Indicates a polling (or NO_SYS) setup.
segundo 0:ac1725ba162c 1139 * The packets are put on a list and netif_poll() must be called in
segundo 0:ac1725ba162c 1140 * the main application loop.
segundo 0:ac1725ba162c 1141 */
segundo 0:ac1725ba162c 1142 #ifndef LWIP_NETIF_LOOPBACK_MULTITHREADING
segundo 0:ac1725ba162c 1143 #define LWIP_NETIF_LOOPBACK_MULTITHREADING (!NO_SYS)
segundo 0:ac1725ba162c 1144 #endif
segundo 0:ac1725ba162c 1145
segundo 0:ac1725ba162c 1146 /**
segundo 0:ac1725ba162c 1147 * LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP tries to put all data
segundo 0:ac1725ba162c 1148 * to be sent into one single pbuf. This is for compatibility with DMA-enabled
segundo 0:ac1725ba162c 1149 * MACs that do not support scatter-gather.
segundo 0:ac1725ba162c 1150 * Beware that this might involve CPU-memcpy before transmitting that would not
segundo 0:ac1725ba162c 1151 * be needed without this flag! Use this only if you need to!
segundo 0:ac1725ba162c 1152 *
segundo 0:ac1725ba162c 1153 * @todo: TCP and IP-frag do not work with this, yet:
segundo 0:ac1725ba162c 1154 */
segundo 0:ac1725ba162c 1155 #ifndef LWIP_NETIF_TX_SINGLE_PBUF
segundo 0:ac1725ba162c 1156 #define LWIP_NETIF_TX_SINGLE_PBUF 0
segundo 0:ac1725ba162c 1157 #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
segundo 0:ac1725ba162c 1158
segundo 0:ac1725ba162c 1159 /*
segundo 0:ac1725ba162c 1160 ------------------------------------
segundo 0:ac1725ba162c 1161 ---------- LOOPIF options ----------
segundo 0:ac1725ba162c 1162 ------------------------------------
segundo 0:ac1725ba162c 1163 */
segundo 0:ac1725ba162c 1164 /**
segundo 0:ac1725ba162c 1165 * LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1) and loopif.c
segundo 0:ac1725ba162c 1166 */
segundo 0:ac1725ba162c 1167 #ifndef LWIP_HAVE_LOOPIF
segundo 0:ac1725ba162c 1168 #define LWIP_HAVE_LOOPIF 0
segundo 0:ac1725ba162c 1169 #endif
segundo 0:ac1725ba162c 1170
segundo 0:ac1725ba162c 1171 /*
segundo 0:ac1725ba162c 1172 ------------------------------------
segundo 0:ac1725ba162c 1173 ---------- SLIPIF options ----------
segundo 0:ac1725ba162c 1174 ------------------------------------
segundo 0:ac1725ba162c 1175 */
segundo 0:ac1725ba162c 1176 /**
segundo 0:ac1725ba162c 1177 * LWIP_HAVE_SLIPIF==1: Support slip interface and slipif.c
segundo 0:ac1725ba162c 1178 */
segundo 0:ac1725ba162c 1179 #ifndef LWIP_HAVE_SLIPIF
segundo 0:ac1725ba162c 1180 #define LWIP_HAVE_SLIPIF 0
segundo 0:ac1725ba162c 1181 #endif
segundo 0:ac1725ba162c 1182
segundo 0:ac1725ba162c 1183 /*
segundo 0:ac1725ba162c 1184 ------------------------------------
segundo 0:ac1725ba162c 1185 ---------- Thread options ----------
segundo 0:ac1725ba162c 1186 ------------------------------------
segundo 0:ac1725ba162c 1187 */
segundo 0:ac1725ba162c 1188 /**
segundo 0:ac1725ba162c 1189 * TCPIP_THREAD_NAME: The name assigned to the main tcpip thread.
segundo 0:ac1725ba162c 1190 */
segundo 0:ac1725ba162c 1191 #ifndef TCPIP_THREAD_NAME
segundo 0:ac1725ba162c 1192 #define TCPIP_THREAD_NAME "tcpip_thread"
segundo 0:ac1725ba162c 1193 #endif
segundo 0:ac1725ba162c 1194
segundo 0:ac1725ba162c 1195 /**
segundo 0:ac1725ba162c 1196 * TCPIP_THREAD_STACKSIZE: The stack size used by the main tcpip thread.
segundo 0:ac1725ba162c 1197 * The stack size value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1198 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1199 */
segundo 0:ac1725ba162c 1200 #ifndef TCPIP_THREAD_STACKSIZE
segundo 0:ac1725ba162c 1201 #define TCPIP_THREAD_STACKSIZE 0
segundo 0:ac1725ba162c 1202 #endif
segundo 0:ac1725ba162c 1203
segundo 0:ac1725ba162c 1204 /**
segundo 0:ac1725ba162c 1205 * TCPIP_THREAD_PRIO: The priority assigned to the main tcpip thread.
segundo 0:ac1725ba162c 1206 * The priority value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1207 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1208 */
segundo 0:ac1725ba162c 1209 #ifndef TCPIP_THREAD_PRIO
segundo 0:ac1725ba162c 1210 #define TCPIP_THREAD_PRIO 1
segundo 0:ac1725ba162c 1211 #endif
segundo 0:ac1725ba162c 1212
segundo 0:ac1725ba162c 1213 /**
segundo 0:ac1725ba162c 1214 * TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages
segundo 0:ac1725ba162c 1215 * The queue size value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1216 * sys_mbox_new() when tcpip_init is called.
segundo 0:ac1725ba162c 1217 */
segundo 0:ac1725ba162c 1218 #ifndef TCPIP_MBOX_SIZE
segundo 0:ac1725ba162c 1219 #define TCPIP_MBOX_SIZE 0
segundo 0:ac1725ba162c 1220 #endif
segundo 0:ac1725ba162c 1221
segundo 0:ac1725ba162c 1222 /**
segundo 0:ac1725ba162c 1223 * SLIPIF_THREAD_NAME: The name assigned to the slipif_loop thread.
segundo 0:ac1725ba162c 1224 */
segundo 0:ac1725ba162c 1225 #ifndef SLIPIF_THREAD_NAME
segundo 0:ac1725ba162c 1226 #define SLIPIF_THREAD_NAME "slipif_loop"
segundo 0:ac1725ba162c 1227 #endif
segundo 0:ac1725ba162c 1228
segundo 0:ac1725ba162c 1229 /**
segundo 0:ac1725ba162c 1230 * SLIP_THREAD_STACKSIZE: The stack size used by the slipif_loop thread.
segundo 0:ac1725ba162c 1231 * The stack size value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1232 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1233 */
segundo 0:ac1725ba162c 1234 #ifndef SLIPIF_THREAD_STACKSIZE
segundo 0:ac1725ba162c 1235 #define SLIPIF_THREAD_STACKSIZE 0
segundo 0:ac1725ba162c 1236 #endif
segundo 0:ac1725ba162c 1237
segundo 0:ac1725ba162c 1238 /**
segundo 0:ac1725ba162c 1239 * SLIPIF_THREAD_PRIO: The priority assigned to the slipif_loop thread.
segundo 0:ac1725ba162c 1240 * The priority value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1241 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1242 */
segundo 0:ac1725ba162c 1243 #ifndef SLIPIF_THREAD_PRIO
segundo 0:ac1725ba162c 1244 #define SLIPIF_THREAD_PRIO 1
segundo 0:ac1725ba162c 1245 #endif
segundo 0:ac1725ba162c 1246
segundo 0:ac1725ba162c 1247 /**
segundo 0:ac1725ba162c 1248 * PPP_THREAD_NAME: The name assigned to the pppInputThread.
segundo 0:ac1725ba162c 1249 */
segundo 0:ac1725ba162c 1250 #ifndef PPP_THREAD_NAME
segundo 0:ac1725ba162c 1251 #define PPP_THREAD_NAME "pppInputThread"
segundo 0:ac1725ba162c 1252 #endif
segundo 0:ac1725ba162c 1253
segundo 0:ac1725ba162c 1254 /**
segundo 0:ac1725ba162c 1255 * PPP_THREAD_STACKSIZE: The stack size used by the pppInputThread.
segundo 0:ac1725ba162c 1256 * The stack size value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1257 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1258 */
segundo 0:ac1725ba162c 1259 #ifndef PPP_THREAD_STACKSIZE
segundo 0:ac1725ba162c 1260 #define PPP_THREAD_STACKSIZE 0
segundo 0:ac1725ba162c 1261 #endif
segundo 0:ac1725ba162c 1262
segundo 0:ac1725ba162c 1263 /**
segundo 0:ac1725ba162c 1264 * PPP_THREAD_PRIO: The priority assigned to the pppInputThread.
segundo 0:ac1725ba162c 1265 * The priority value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1266 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1267 */
segundo 0:ac1725ba162c 1268 #ifndef PPP_THREAD_PRIO
segundo 0:ac1725ba162c 1269 #define PPP_THREAD_PRIO 1
segundo 0:ac1725ba162c 1270 #endif
segundo 0:ac1725ba162c 1271
segundo 0:ac1725ba162c 1272 /**
segundo 0:ac1725ba162c 1273 * DEFAULT_THREAD_NAME: The name assigned to any other lwIP thread.
segundo 0:ac1725ba162c 1274 */
segundo 0:ac1725ba162c 1275 #ifndef DEFAULT_THREAD_NAME
segundo 0:ac1725ba162c 1276 #define DEFAULT_THREAD_NAME "lwIP"
segundo 0:ac1725ba162c 1277 #endif
segundo 0:ac1725ba162c 1278
segundo 0:ac1725ba162c 1279 /**
segundo 0:ac1725ba162c 1280 * DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread.
segundo 0:ac1725ba162c 1281 * The stack size value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1282 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1283 */
segundo 0:ac1725ba162c 1284 #ifndef DEFAULT_THREAD_STACKSIZE
segundo 0:ac1725ba162c 1285 #define DEFAULT_THREAD_STACKSIZE 0
segundo 0:ac1725ba162c 1286 #endif
segundo 0:ac1725ba162c 1287
segundo 0:ac1725ba162c 1288 /**
segundo 0:ac1725ba162c 1289 * DEFAULT_THREAD_PRIO: The priority assigned to any other lwIP thread.
segundo 0:ac1725ba162c 1290 * The priority value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1291 * sys_thread_new() when the thread is created.
segundo 0:ac1725ba162c 1292 */
segundo 0:ac1725ba162c 1293 #ifndef DEFAULT_THREAD_PRIO
segundo 0:ac1725ba162c 1294 #define DEFAULT_THREAD_PRIO 1
segundo 0:ac1725ba162c 1295 #endif
segundo 0:ac1725ba162c 1296
segundo 0:ac1725ba162c 1297 /**
segundo 0:ac1725ba162c 1298 * DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a
segundo 0:ac1725ba162c 1299 * NETCONN_RAW. The queue size value itself is platform-dependent, but is passed
segundo 0:ac1725ba162c 1300 * to sys_mbox_new() when the recvmbox is created.
segundo 0:ac1725ba162c 1301 */
segundo 0:ac1725ba162c 1302 #ifndef DEFAULT_RAW_RECVMBOX_SIZE
segundo 0:ac1725ba162c 1303 #define DEFAULT_RAW_RECVMBOX_SIZE 0
segundo 0:ac1725ba162c 1304 #endif
segundo 0:ac1725ba162c 1305
segundo 0:ac1725ba162c 1306 /**
segundo 0:ac1725ba162c 1307 * DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a
segundo 0:ac1725ba162c 1308 * NETCONN_UDP. The queue size value itself is platform-dependent, but is passed
segundo 0:ac1725ba162c 1309 * to sys_mbox_new() when the recvmbox is created.
segundo 0:ac1725ba162c 1310 */
segundo 0:ac1725ba162c 1311 #ifndef DEFAULT_UDP_RECVMBOX_SIZE
segundo 0:ac1725ba162c 1312 #define DEFAULT_UDP_RECVMBOX_SIZE 0
segundo 0:ac1725ba162c 1313 #endif
segundo 0:ac1725ba162c 1314
segundo 0:ac1725ba162c 1315 /**
segundo 0:ac1725ba162c 1316 * DEFAULT_TCP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a
segundo 0:ac1725ba162c 1317 * NETCONN_TCP. The queue size value itself is platform-dependent, but is passed
segundo 0:ac1725ba162c 1318 * to sys_mbox_new() when the recvmbox is created.
segundo 0:ac1725ba162c 1319 */
segundo 0:ac1725ba162c 1320 #ifndef DEFAULT_TCP_RECVMBOX_SIZE
segundo 0:ac1725ba162c 1321 #define DEFAULT_TCP_RECVMBOX_SIZE 0
segundo 0:ac1725ba162c 1322 #endif
segundo 0:ac1725ba162c 1323
segundo 0:ac1725ba162c 1324 /**
segundo 0:ac1725ba162c 1325 * DEFAULT_ACCEPTMBOX_SIZE: The mailbox size for the incoming connections.
segundo 0:ac1725ba162c 1326 * The queue size value itself is platform-dependent, but is passed to
segundo 0:ac1725ba162c 1327 * sys_mbox_new() when the acceptmbox is created.
segundo 0:ac1725ba162c 1328 */
segundo 0:ac1725ba162c 1329 #ifndef DEFAULT_ACCEPTMBOX_SIZE
segundo 0:ac1725ba162c 1330 #define DEFAULT_ACCEPTMBOX_SIZE 0
segundo 0:ac1725ba162c 1331 #endif
segundo 0:ac1725ba162c 1332
segundo 0:ac1725ba162c 1333 /*
segundo 0:ac1725ba162c 1334 ----------------------------------------------
segundo 0:ac1725ba162c 1335 ---------- Sequential layer options ----------
segundo 0:ac1725ba162c 1336 ----------------------------------------------
segundo 0:ac1725ba162c 1337 */
segundo 0:ac1725ba162c 1338 /**
segundo 0:ac1725ba162c 1339 * LWIP_TCPIP_CORE_LOCKING: (EXPERIMENTAL!)
segundo 0:ac1725ba162c 1340 * Don't use it if you're not an active lwIP project member
segundo 0:ac1725ba162c 1341 */
segundo 0:ac1725ba162c 1342 #ifndef LWIP_TCPIP_CORE_LOCKING
segundo 0:ac1725ba162c 1343 #define LWIP_TCPIP_CORE_LOCKING 0
segundo 0:ac1725ba162c 1344 #endif
segundo 0:ac1725ba162c 1345
segundo 0:ac1725ba162c 1346 /**
segundo 0:ac1725ba162c 1347 * LWIP_TCPIP_CORE_LOCKING_INPUT: (EXPERIMENTAL!)
segundo 0:ac1725ba162c 1348 * Don't use it if you're not an active lwIP project member
segundo 0:ac1725ba162c 1349 */
segundo 0:ac1725ba162c 1350 #ifndef LWIP_TCPIP_CORE_LOCKING_INPUT
segundo 0:ac1725ba162c 1351 #define LWIP_TCPIP_CORE_LOCKING_INPUT 0
segundo 0:ac1725ba162c 1352 #endif
segundo 0:ac1725ba162c 1353
segundo 0:ac1725ba162c 1354 /**
segundo 0:ac1725ba162c 1355 * LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c)
segundo 0:ac1725ba162c 1356 */
segundo 0:ac1725ba162c 1357 #ifndef LWIP_NETCONN
segundo 0:ac1725ba162c 1358 #define LWIP_NETCONN 1
segundo 0:ac1725ba162c 1359 #endif
segundo 0:ac1725ba162c 1360
segundo 0:ac1725ba162c 1361 /** LWIP_TCPIP_TIMEOUT==1: Enable tcpip_timeout/tcpip_untimeout tod create
segundo 0:ac1725ba162c 1362 * timers running in tcpip_thread from another thread.
segundo 0:ac1725ba162c 1363 */
segundo 0:ac1725ba162c 1364 #ifndef LWIP_TCPIP_TIMEOUT
segundo 0:ac1725ba162c 1365 #define LWIP_TCPIP_TIMEOUT 1
segundo 0:ac1725ba162c 1366 #endif
segundo 0:ac1725ba162c 1367
segundo 0:ac1725ba162c 1368 /*
segundo 0:ac1725ba162c 1369 ------------------------------------
segundo 0:ac1725ba162c 1370 ---------- Socket options ----------
segundo 0:ac1725ba162c 1371 ------------------------------------
segundo 0:ac1725ba162c 1372 */
segundo 0:ac1725ba162c 1373 /**
segundo 0:ac1725ba162c 1374 * LWIP_SOCKET==1: Enable Socket API (require to use sockets.c)
segundo 0:ac1725ba162c 1375 */
segundo 0:ac1725ba162c 1376 #ifndef LWIP_SOCKET
segundo 0:ac1725ba162c 1377 #define LWIP_SOCKET 1
segundo 0:ac1725ba162c 1378 #endif
segundo 0:ac1725ba162c 1379
segundo 0:ac1725ba162c 1380 /**
segundo 0:ac1725ba162c 1381 * LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names.
segundo 0:ac1725ba162c 1382 * (only used if you use sockets.c)
segundo 0:ac1725ba162c 1383 */
segundo 0:ac1725ba162c 1384 #ifndef LWIP_COMPAT_SOCKETS
segundo 0:ac1725ba162c 1385 #define LWIP_COMPAT_SOCKETS 1
segundo 0:ac1725ba162c 1386 #endif
segundo 0:ac1725ba162c 1387
segundo 0:ac1725ba162c 1388 /**
segundo 0:ac1725ba162c 1389 * LWIP_POSIX_SOCKETS_IO_NAMES==1: Enable POSIX-style sockets functions names.
segundo 0:ac1725ba162c 1390 * Disable this option if you use a POSIX operating system that uses the same
segundo 0:ac1725ba162c 1391 * names (read, write & close). (only used if you use sockets.c)
segundo 0:ac1725ba162c 1392 */
segundo 0:ac1725ba162c 1393 #ifndef LWIP_POSIX_SOCKETS_IO_NAMES
segundo 0:ac1725ba162c 1394 #define LWIP_POSIX_SOCKETS_IO_NAMES 1
segundo 0:ac1725ba162c 1395 #endif
segundo 0:ac1725ba162c 1396
segundo 0:ac1725ba162c 1397 /**
segundo 0:ac1725ba162c 1398 * LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT
segundo 0:ac1725ba162c 1399 * options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set
segundo 0:ac1725ba162c 1400 * in seconds. (does not require sockets.c, and will affect tcp.c)
segundo 0:ac1725ba162c 1401 */
segundo 0:ac1725ba162c 1402 #ifndef LWIP_TCP_KEEPALIVE
segundo 0:ac1725ba162c 1403 #define LWIP_TCP_KEEPALIVE 0
segundo 0:ac1725ba162c 1404 #endif
segundo 0:ac1725ba162c 1405
segundo 0:ac1725ba162c 1406 /**
segundo 0:ac1725ba162c 1407 * LWIP_SO_RCVTIMEO==1: Enable SO_RCVTIMEO processing.
segundo 0:ac1725ba162c 1408 */
segundo 0:ac1725ba162c 1409 #ifndef LWIP_SO_RCVTIMEO
segundo 0:ac1725ba162c 1410 #define LWIP_SO_RCVTIMEO 0
segundo 0:ac1725ba162c 1411 #endif
segundo 0:ac1725ba162c 1412
segundo 0:ac1725ba162c 1413 /**
segundo 0:ac1725ba162c 1414 * LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing.
segundo 0:ac1725ba162c 1415 */
segundo 0:ac1725ba162c 1416 #ifndef LWIP_SO_RCVBUF
segundo 0:ac1725ba162c 1417 #define LWIP_SO_RCVBUF 0
segundo 0:ac1725ba162c 1418 #endif
segundo 0:ac1725ba162c 1419
segundo 0:ac1725ba162c 1420 /**
segundo 0:ac1725ba162c 1421 * If LWIP_SO_RCVBUF is used, this is the default value for recv_bufsize.
segundo 0:ac1725ba162c 1422 */
segundo 0:ac1725ba162c 1423 #ifndef RECV_BUFSIZE_DEFAULT
segundo 0:ac1725ba162c 1424 #define RECV_BUFSIZE_DEFAULT INT_MAX
segundo 0:ac1725ba162c 1425 #endif
segundo 0:ac1725ba162c 1426
segundo 0:ac1725ba162c 1427 /**
segundo 0:ac1725ba162c 1428 * SO_REUSE==1: Enable SO_REUSEADDR option.
segundo 0:ac1725ba162c 1429 */
segundo 0:ac1725ba162c 1430 #ifndef SO_REUSE
segundo 0:ac1725ba162c 1431 #define SO_REUSE 0
segundo 0:ac1725ba162c 1432 #endif
segundo 0:ac1725ba162c 1433
segundo 0:ac1725ba162c 1434 /**
segundo 0:ac1725ba162c 1435 * SO_REUSE_RXTOALL==1: Pass a copy of incoming broadcast/multicast packets
segundo 0:ac1725ba162c 1436 * to all local matches if SO_REUSEADDR is turned on.
segundo 0:ac1725ba162c 1437 * WARNING: Adds a memcpy for every packet if passing to more than one pcb!
segundo 0:ac1725ba162c 1438 */
segundo 0:ac1725ba162c 1439 #ifndef SO_REUSE_RXTOALL
segundo 0:ac1725ba162c 1440 #define SO_REUSE_RXTOALL 0
segundo 0:ac1725ba162c 1441 #endif
segundo 0:ac1725ba162c 1442
segundo 0:ac1725ba162c 1443 /*
segundo 0:ac1725ba162c 1444 ----------------------------------------
segundo 0:ac1725ba162c 1445 ---------- Statistics options ----------
segundo 0:ac1725ba162c 1446 ----------------------------------------
segundo 0:ac1725ba162c 1447 */
segundo 0:ac1725ba162c 1448 /**
segundo 0:ac1725ba162c 1449 * LWIP_STATS==1: Enable statistics collection in lwip_stats.
segundo 0:ac1725ba162c 1450 */
segundo 0:ac1725ba162c 1451 #ifndef LWIP_STATS
segundo 0:ac1725ba162c 1452 #define LWIP_STATS 1
segundo 0:ac1725ba162c 1453 #endif
segundo 0:ac1725ba162c 1454
segundo 0:ac1725ba162c 1455 #if LWIP_STATS
segundo 0:ac1725ba162c 1456
segundo 0:ac1725ba162c 1457 /**
segundo 0:ac1725ba162c 1458 * LWIP_STATS_DISPLAY==1: Compile in the statistics output functions.
segundo 0:ac1725ba162c 1459 */
segundo 0:ac1725ba162c 1460 #ifndef LWIP_STATS_DISPLAY
segundo 0:ac1725ba162c 1461 #define LWIP_STATS_DISPLAY 0
segundo 0:ac1725ba162c 1462 #endif
segundo 0:ac1725ba162c 1463
segundo 0:ac1725ba162c 1464 /**
segundo 0:ac1725ba162c 1465 * LINK_STATS==1: Enable link stats.
segundo 0:ac1725ba162c 1466 */
segundo 0:ac1725ba162c 1467 #ifndef LINK_STATS
segundo 0:ac1725ba162c 1468 #define LINK_STATS 1
segundo 0:ac1725ba162c 1469 #endif
segundo 0:ac1725ba162c 1470
segundo 0:ac1725ba162c 1471 /**
segundo 0:ac1725ba162c 1472 * ETHARP_STATS==1: Enable etharp stats.
segundo 0:ac1725ba162c 1473 */
segundo 0:ac1725ba162c 1474 #ifndef ETHARP_STATS
segundo 0:ac1725ba162c 1475 #define ETHARP_STATS (LWIP_ARP)
segundo 0:ac1725ba162c 1476 #endif
segundo 0:ac1725ba162c 1477
segundo 0:ac1725ba162c 1478 /**
segundo 0:ac1725ba162c 1479 * IP_STATS==1: Enable IP stats.
segundo 0:ac1725ba162c 1480 */
segundo 0:ac1725ba162c 1481 #ifndef IP_STATS
segundo 0:ac1725ba162c 1482 #define IP_STATS 1
segundo 0:ac1725ba162c 1483 #endif
segundo 0:ac1725ba162c 1484
segundo 0:ac1725ba162c 1485 /**
segundo 0:ac1725ba162c 1486 * IPFRAG_STATS==1: Enable IP fragmentation stats. Default is
segundo 0:ac1725ba162c 1487 * on if using either frag or reass.
segundo 0:ac1725ba162c 1488 */
segundo 0:ac1725ba162c 1489 #ifndef IPFRAG_STATS
segundo 0:ac1725ba162c 1490 #define IPFRAG_STATS (IP_REASSEMBLY || IP_FRAG)
segundo 0:ac1725ba162c 1491 #endif
segundo 0:ac1725ba162c 1492
segundo 0:ac1725ba162c 1493 /**
segundo 0:ac1725ba162c 1494 * ICMP_STATS==1: Enable ICMP stats.
segundo 0:ac1725ba162c 1495 */
segundo 0:ac1725ba162c 1496 #ifndef ICMP_STATS
segundo 0:ac1725ba162c 1497 #define ICMP_STATS 1
segundo 0:ac1725ba162c 1498 #endif
segundo 0:ac1725ba162c 1499
segundo 0:ac1725ba162c 1500 /**
segundo 0:ac1725ba162c 1501 * IGMP_STATS==1: Enable IGMP stats.
segundo 0:ac1725ba162c 1502 */
segundo 0:ac1725ba162c 1503 #ifndef IGMP_STATS
segundo 0:ac1725ba162c 1504 #define IGMP_STATS (LWIP_IGMP)
segundo 0:ac1725ba162c 1505 #endif
segundo 0:ac1725ba162c 1506
segundo 0:ac1725ba162c 1507 /**
segundo 0:ac1725ba162c 1508 * UDP_STATS==1: Enable UDP stats. Default is on if
segundo 0:ac1725ba162c 1509 * UDP enabled, otherwise off.
segundo 0:ac1725ba162c 1510 */
segundo 0:ac1725ba162c 1511 #ifndef UDP_STATS
segundo 0:ac1725ba162c 1512 #define UDP_STATS (LWIP_UDP)
segundo 0:ac1725ba162c 1513 #endif
segundo 0:ac1725ba162c 1514
segundo 0:ac1725ba162c 1515 /**
segundo 0:ac1725ba162c 1516 * TCP_STATS==1: Enable TCP stats. Default is on if TCP
segundo 0:ac1725ba162c 1517 * enabled, otherwise off.
segundo 0:ac1725ba162c 1518 */
segundo 0:ac1725ba162c 1519 #ifndef TCP_STATS
segundo 0:ac1725ba162c 1520 #define TCP_STATS (LWIP_TCP)
segundo 0:ac1725ba162c 1521 #endif
segundo 0:ac1725ba162c 1522
segundo 0:ac1725ba162c 1523 /**
segundo 0:ac1725ba162c 1524 * MEM_STATS==1: Enable mem.c stats.
segundo 0:ac1725ba162c 1525 */
segundo 0:ac1725ba162c 1526 #ifndef MEM_STATS
segundo 0:ac1725ba162c 1527 #define MEM_STATS ((MEM_LIBC_MALLOC == 0) && (MEM_USE_POOLS == 0))
segundo 0:ac1725ba162c 1528 #endif
segundo 0:ac1725ba162c 1529
segundo 0:ac1725ba162c 1530 /**
segundo 0:ac1725ba162c 1531 * MEMP_STATS==1: Enable memp.c pool stats.
segundo 0:ac1725ba162c 1532 */
segundo 0:ac1725ba162c 1533 #ifndef MEMP_STATS
segundo 0:ac1725ba162c 1534 #define MEMP_STATS (MEMP_MEM_MALLOC == 0)
segundo 0:ac1725ba162c 1535 #endif
segundo 0:ac1725ba162c 1536
segundo 0:ac1725ba162c 1537 /**
segundo 0:ac1725ba162c 1538 * SYS_STATS==1: Enable system stats (sem and mbox counts, etc).
segundo 0:ac1725ba162c 1539 */
segundo 0:ac1725ba162c 1540 #ifndef SYS_STATS
segundo 0:ac1725ba162c 1541 #define SYS_STATS (NO_SYS == 0)
segundo 0:ac1725ba162c 1542 #endif
segundo 0:ac1725ba162c 1543
segundo 0:ac1725ba162c 1544 #else
segundo 0:ac1725ba162c 1545
segundo 0:ac1725ba162c 1546 #define LINK_STATS 0
segundo 0:ac1725ba162c 1547 #define IP_STATS 0
segundo 0:ac1725ba162c 1548 #define IPFRAG_STATS 0
segundo 0:ac1725ba162c 1549 #define ICMP_STATS 0
segundo 0:ac1725ba162c 1550 #define IGMP_STATS 0
segundo 0:ac1725ba162c 1551 #define UDP_STATS 0
segundo 0:ac1725ba162c 1552 #define TCP_STATS 0
segundo 0:ac1725ba162c 1553 #define MEM_STATS 0
segundo 0:ac1725ba162c 1554 #define MEMP_STATS 0
segundo 0:ac1725ba162c 1555 #define SYS_STATS 0
segundo 0:ac1725ba162c 1556 #define LWIP_STATS_DISPLAY 0
segundo 0:ac1725ba162c 1557
segundo 0:ac1725ba162c 1558 #endif /* LWIP_STATS */
segundo 0:ac1725ba162c 1559
segundo 0:ac1725ba162c 1560 /*
segundo 0:ac1725ba162c 1561 ---------------------------------
segundo 0:ac1725ba162c 1562 ---------- PPP options ----------
segundo 0:ac1725ba162c 1563 ---------------------------------
segundo 0:ac1725ba162c 1564 */
segundo 0:ac1725ba162c 1565 /**
segundo 0:ac1725ba162c 1566 * PPP_SUPPORT==1: Enable PPP.
segundo 0:ac1725ba162c 1567 */
segundo 0:ac1725ba162c 1568 #ifndef PPP_SUPPORT
segundo 0:ac1725ba162c 1569 #define PPP_SUPPORT 0
segundo 0:ac1725ba162c 1570 #endif
segundo 0:ac1725ba162c 1571
segundo 0:ac1725ba162c 1572 /**
segundo 0:ac1725ba162c 1573 * PPPOE_SUPPORT==1: Enable PPP Over Ethernet
segundo 0:ac1725ba162c 1574 */
segundo 0:ac1725ba162c 1575 #ifndef PPPOE_SUPPORT
segundo 0:ac1725ba162c 1576 #define PPPOE_SUPPORT 0
segundo 0:ac1725ba162c 1577 #endif
segundo 0:ac1725ba162c 1578
segundo 0:ac1725ba162c 1579 /**
segundo 0:ac1725ba162c 1580 * PPPOS_SUPPORT==1: Enable PPP Over Serial
segundo 0:ac1725ba162c 1581 */
segundo 0:ac1725ba162c 1582 #ifndef PPPOS_SUPPORT
segundo 0:ac1725ba162c 1583 #define PPPOS_SUPPORT PPP_SUPPORT
segundo 0:ac1725ba162c 1584 #endif
segundo 0:ac1725ba162c 1585
segundo 0:ac1725ba162c 1586 #if PPP_SUPPORT
segundo 0:ac1725ba162c 1587
segundo 0:ac1725ba162c 1588 /**
segundo 0:ac1725ba162c 1589 * NUM_PPP: Max PPP sessions.
segundo 0:ac1725ba162c 1590 */
segundo 0:ac1725ba162c 1591 #ifndef NUM_PPP
segundo 0:ac1725ba162c 1592 #define NUM_PPP 1
segundo 0:ac1725ba162c 1593 #endif
segundo 0:ac1725ba162c 1594
segundo 0:ac1725ba162c 1595 /**
segundo 0:ac1725ba162c 1596 * PAP_SUPPORT==1: Support PAP.
segundo 0:ac1725ba162c 1597 */
segundo 0:ac1725ba162c 1598 #ifndef PAP_SUPPORT
segundo 0:ac1725ba162c 1599 #define PAP_SUPPORT 0
segundo 0:ac1725ba162c 1600 #endif
segundo 0:ac1725ba162c 1601
segundo 0:ac1725ba162c 1602 /**
segundo 0:ac1725ba162c 1603 * CHAP_SUPPORT==1: Support CHAP.
segundo 0:ac1725ba162c 1604 */
segundo 0:ac1725ba162c 1605 #ifndef CHAP_SUPPORT
segundo 0:ac1725ba162c 1606 #define CHAP_SUPPORT 0
segundo 0:ac1725ba162c 1607 #endif
segundo 0:ac1725ba162c 1608
segundo 0:ac1725ba162c 1609 /**
segundo 0:ac1725ba162c 1610 * MSCHAP_SUPPORT==1: Support MSCHAP. CURRENTLY NOT SUPPORTED! DO NOT SET!
segundo 0:ac1725ba162c 1611 */
segundo 0:ac1725ba162c 1612 #ifndef MSCHAP_SUPPORT
segundo 0:ac1725ba162c 1613 #define MSCHAP_SUPPORT 0
segundo 0:ac1725ba162c 1614 #endif
segundo 0:ac1725ba162c 1615
segundo 0:ac1725ba162c 1616 /**
segundo 0:ac1725ba162c 1617 * CBCP_SUPPORT==1: Support CBCP. CURRENTLY NOT SUPPORTED! DO NOT SET!
segundo 0:ac1725ba162c 1618 */
segundo 0:ac1725ba162c 1619 #ifndef CBCP_SUPPORT
segundo 0:ac1725ba162c 1620 #define CBCP_SUPPORT 0
segundo 0:ac1725ba162c 1621 #endif
segundo 0:ac1725ba162c 1622
segundo 0:ac1725ba162c 1623 /**
segundo 0:ac1725ba162c 1624 * CCP_SUPPORT==1: Support CCP. CURRENTLY NOT SUPPORTED! DO NOT SET!
segundo 0:ac1725ba162c 1625 */
segundo 0:ac1725ba162c 1626 #ifndef CCP_SUPPORT
segundo 0:ac1725ba162c 1627 #define CCP_SUPPORT 0
segundo 0:ac1725ba162c 1628 #endif
segundo 0:ac1725ba162c 1629
segundo 0:ac1725ba162c 1630 /**
segundo 0:ac1725ba162c 1631 * VJ_SUPPORT==1: Support VJ header compression.
segundo 0:ac1725ba162c 1632 */
segundo 0:ac1725ba162c 1633 #ifndef VJ_SUPPORT
segundo 0:ac1725ba162c 1634 #define VJ_SUPPORT 0
segundo 0:ac1725ba162c 1635 #endif
segundo 0:ac1725ba162c 1636
segundo 0:ac1725ba162c 1637 /**
segundo 0:ac1725ba162c 1638 * MD5_SUPPORT==1: Support MD5 (see also CHAP).
segundo 0:ac1725ba162c 1639 */
segundo 0:ac1725ba162c 1640 #ifndef MD5_SUPPORT
segundo 0:ac1725ba162c 1641 #define MD5_SUPPORT 0
segundo 0:ac1725ba162c 1642 #endif
segundo 0:ac1725ba162c 1643
segundo 0:ac1725ba162c 1644 /*
segundo 0:ac1725ba162c 1645 * Timeouts
segundo 0:ac1725ba162c 1646 */
segundo 0:ac1725ba162c 1647 #ifndef FSM_DEFTIMEOUT
segundo 0:ac1725ba162c 1648 #define FSM_DEFTIMEOUT 6 /* Timeout time in seconds */
segundo 0:ac1725ba162c 1649 #endif
segundo 0:ac1725ba162c 1650
segundo 0:ac1725ba162c 1651 #ifndef FSM_DEFMAXTERMREQS
segundo 0:ac1725ba162c 1652 #define FSM_DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */
segundo 0:ac1725ba162c 1653 #endif
segundo 0:ac1725ba162c 1654
segundo 0:ac1725ba162c 1655 #ifndef FSM_DEFMAXCONFREQS
segundo 0:ac1725ba162c 1656 #define FSM_DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */
segundo 0:ac1725ba162c 1657 #endif
segundo 0:ac1725ba162c 1658
segundo 0:ac1725ba162c 1659 #ifndef FSM_DEFMAXNAKLOOPS
segundo 0:ac1725ba162c 1660 #define FSM_DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */
segundo 0:ac1725ba162c 1661 #endif
segundo 0:ac1725ba162c 1662
segundo 0:ac1725ba162c 1663 #ifndef UPAP_DEFTIMEOUT
segundo 0:ac1725ba162c 1664 #define UPAP_DEFTIMEOUT 6 /* Timeout (seconds) for retransmitting req */
segundo 0:ac1725ba162c 1665 #endif
segundo 0:ac1725ba162c 1666
segundo 0:ac1725ba162c 1667 #ifndef UPAP_DEFREQTIME
segundo 0:ac1725ba162c 1668 #define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */
segundo 0:ac1725ba162c 1669 #endif
segundo 0:ac1725ba162c 1670
segundo 0:ac1725ba162c 1671 #ifndef CHAP_DEFTIMEOUT
segundo 0:ac1725ba162c 1672 #define CHAP_DEFTIMEOUT 6 /* Timeout time in seconds */
segundo 0:ac1725ba162c 1673 #endif
segundo 0:ac1725ba162c 1674
segundo 0:ac1725ba162c 1675 #ifndef CHAP_DEFTRANSMITS
segundo 0:ac1725ba162c 1676 #define CHAP_DEFTRANSMITS 10 /* max # times to send challenge */
segundo 0:ac1725ba162c 1677 #endif
segundo 0:ac1725ba162c 1678
segundo 0:ac1725ba162c 1679 /* Interval in seconds between keepalive echo requests, 0 to disable. */
segundo 0:ac1725ba162c 1680 #ifndef LCP_ECHOINTERVAL
segundo 0:ac1725ba162c 1681 #define LCP_ECHOINTERVAL 0
segundo 0:ac1725ba162c 1682 #endif
segundo 0:ac1725ba162c 1683
segundo 0:ac1725ba162c 1684 /* Number of unanswered echo requests before failure. */
segundo 0:ac1725ba162c 1685 #ifndef LCP_MAXECHOFAILS
segundo 0:ac1725ba162c 1686 #define LCP_MAXECHOFAILS 3
segundo 0:ac1725ba162c 1687 #endif
segundo 0:ac1725ba162c 1688
segundo 0:ac1725ba162c 1689 /* Max Xmit idle time (in jiffies) before resend flag char. */
segundo 0:ac1725ba162c 1690 #ifndef PPP_MAXIDLEFLAG
segundo 0:ac1725ba162c 1691 #define PPP_MAXIDLEFLAG 100
segundo 0:ac1725ba162c 1692 #endif
segundo 0:ac1725ba162c 1693
segundo 0:ac1725ba162c 1694 /*
segundo 0:ac1725ba162c 1695 * Packet sizes
segundo 0:ac1725ba162c 1696 *
segundo 0:ac1725ba162c 1697 * Note - lcp shouldn't be allowed to negotiate stuff outside these
segundo 0:ac1725ba162c 1698 * limits. See lcp.h in the pppd directory.
segundo 0:ac1725ba162c 1699 * (XXX - these constants should simply be shared by lcp.c instead
segundo 0:ac1725ba162c 1700 * of living in lcp.h)
segundo 0:ac1725ba162c 1701 */
segundo 0:ac1725ba162c 1702 #define PPP_MTU 1500 /* Default MTU (size of Info field) */
segundo 0:ac1725ba162c 1703 #ifndef PPP_MAXMTU
segundo 0:ac1725ba162c 1704 /* #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN) */
segundo 0:ac1725ba162c 1705 #define PPP_MAXMTU 1500 /* Largest MTU we allow */
segundo 0:ac1725ba162c 1706 #endif
segundo 0:ac1725ba162c 1707 #define PPP_MINMTU 64
segundo 0:ac1725ba162c 1708 #define PPP_MRU 1500 /* default MRU = max length of info field */
segundo 0:ac1725ba162c 1709 #define PPP_MAXMRU 1500 /* Largest MRU we allow */
segundo 0:ac1725ba162c 1710 #ifndef PPP_DEFMRU
segundo 0:ac1725ba162c 1711 #define PPP_DEFMRU 296 /* Try for this */
segundo 0:ac1725ba162c 1712 #endif
segundo 0:ac1725ba162c 1713 #define PPP_MINMRU 128 /* No MRUs below this */
segundo 0:ac1725ba162c 1714
segundo 0:ac1725ba162c 1715 #ifndef MAXNAMELEN
segundo 0:ac1725ba162c 1716 #define MAXNAMELEN 256 /* max length of hostname or name for auth */
segundo 0:ac1725ba162c 1717 #endif
segundo 0:ac1725ba162c 1718 #ifndef MAXSECRETLEN
segundo 0:ac1725ba162c 1719 #define MAXSECRETLEN 256 /* max length of password or secret */
segundo 0:ac1725ba162c 1720 #endif
segundo 0:ac1725ba162c 1721
segundo 0:ac1725ba162c 1722 #endif /* PPP_SUPPORT */
segundo 0:ac1725ba162c 1723
segundo 0:ac1725ba162c 1724 /*
segundo 0:ac1725ba162c 1725 --------------------------------------
segundo 0:ac1725ba162c 1726 ---------- Checksum options ----------
segundo 0:ac1725ba162c 1727 --------------------------------------
segundo 0:ac1725ba162c 1728 */
segundo 0:ac1725ba162c 1729 /**
segundo 0:ac1725ba162c 1730 * CHECKSUM_GEN_IP==1: Generate checksums in software for outgoing IP packets.
segundo 0:ac1725ba162c 1731 */
segundo 0:ac1725ba162c 1732 #ifndef CHECKSUM_GEN_IP
segundo 0:ac1725ba162c 1733 #define CHECKSUM_GEN_IP 1
segundo 0:ac1725ba162c 1734 #endif
segundo 0:ac1725ba162c 1735
segundo 0:ac1725ba162c 1736 /**
segundo 0:ac1725ba162c 1737 * CHECKSUM_GEN_UDP==1: Generate checksums in software for outgoing UDP packets.
segundo 0:ac1725ba162c 1738 */
segundo 0:ac1725ba162c 1739 #ifndef CHECKSUM_GEN_UDP
segundo 0:ac1725ba162c 1740 #define CHECKSUM_GEN_UDP 1
segundo 0:ac1725ba162c 1741 #endif
segundo 0:ac1725ba162c 1742
segundo 0:ac1725ba162c 1743 /**
segundo 0:ac1725ba162c 1744 * CHECKSUM_GEN_TCP==1: Generate checksums in software for outgoing TCP packets.
segundo 0:ac1725ba162c 1745 */
segundo 0:ac1725ba162c 1746 #ifndef CHECKSUM_GEN_TCP
segundo 0:ac1725ba162c 1747 #define CHECKSUM_GEN_TCP 1
segundo 0:ac1725ba162c 1748 #endif
segundo 0:ac1725ba162c 1749
segundo 0:ac1725ba162c 1750 /**
segundo 0:ac1725ba162c 1751 * CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets.
segundo 0:ac1725ba162c 1752 */
segundo 0:ac1725ba162c 1753 #ifndef CHECKSUM_CHECK_IP
segundo 0:ac1725ba162c 1754 #define CHECKSUM_CHECK_IP 1
segundo 0:ac1725ba162c 1755 #endif
segundo 0:ac1725ba162c 1756
segundo 0:ac1725ba162c 1757 /**
segundo 0:ac1725ba162c 1758 * CHECKSUM_CHECK_UDP==1: Check checksums in software for incoming UDP packets.
segundo 0:ac1725ba162c 1759 */
segundo 0:ac1725ba162c 1760 #ifndef CHECKSUM_CHECK_UDP
segundo 0:ac1725ba162c 1761 #define CHECKSUM_CHECK_UDP 1
segundo 0:ac1725ba162c 1762 #endif
segundo 0:ac1725ba162c 1763
segundo 0:ac1725ba162c 1764 /**
segundo 0:ac1725ba162c 1765 * CHECKSUM_CHECK_TCP==1: Check checksums in software for incoming TCP packets.
segundo 0:ac1725ba162c 1766 */
segundo 0:ac1725ba162c 1767 #ifndef CHECKSUM_CHECK_TCP
segundo 0:ac1725ba162c 1768 #define CHECKSUM_CHECK_TCP 1
segundo 0:ac1725ba162c 1769 #endif
segundo 0:ac1725ba162c 1770
segundo 0:ac1725ba162c 1771 /**
segundo 0:ac1725ba162c 1772 * LWIP_CHECKSUM_ON_COPY==1: Calculate checksum when copying data from
segundo 0:ac1725ba162c 1773 * application buffers to pbufs.
segundo 0:ac1725ba162c 1774 */
segundo 0:ac1725ba162c 1775 #ifndef LWIP_CHECKSUM_ON_COPY
segundo 0:ac1725ba162c 1776 #define LWIP_CHECKSUM_ON_COPY 0
segundo 0:ac1725ba162c 1777 #endif
segundo 0:ac1725ba162c 1778
segundo 0:ac1725ba162c 1779 /*
segundo 0:ac1725ba162c 1780 ---------------------------------------
segundo 0:ac1725ba162c 1781 ---------- Debugging options ----------
segundo 0:ac1725ba162c 1782 ---------------------------------------
segundo 0:ac1725ba162c 1783 */
segundo 0:ac1725ba162c 1784 /**
segundo 0:ac1725ba162c 1785 * LWIP_DBG_MIN_LEVEL: After masking, the value of the debug is
segundo 0:ac1725ba162c 1786 * compared against this value. If it is smaller, then debugging
segundo 0:ac1725ba162c 1787 * messages are written.
segundo 0:ac1725ba162c 1788 */
segundo 0:ac1725ba162c 1789 #ifndef LWIP_DBG_MIN_LEVEL
segundo 0:ac1725ba162c 1790 #define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL
segundo 0:ac1725ba162c 1791 #endif
segundo 0:ac1725ba162c 1792
segundo 0:ac1725ba162c 1793 /**
segundo 0:ac1725ba162c 1794 * LWIP_DBG_TYPES_ON: A mask that can be used to globally enable/disable
segundo 0:ac1725ba162c 1795 * debug messages of certain types.
segundo 0:ac1725ba162c 1796 */
segundo 0:ac1725ba162c 1797 #ifndef LWIP_DBG_TYPES_ON
segundo 0:ac1725ba162c 1798 #define LWIP_DBG_TYPES_ON LWIP_DBG_ON
segundo 0:ac1725ba162c 1799 #endif
segundo 0:ac1725ba162c 1800
segundo 0:ac1725ba162c 1801 /**
segundo 0:ac1725ba162c 1802 * ETHARP_DEBUG: Enable debugging in etharp.c.
segundo 0:ac1725ba162c 1803 */
segundo 0:ac1725ba162c 1804 #ifndef ETHARP_DEBUG
segundo 0:ac1725ba162c 1805 #define ETHARP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1806 #endif
segundo 0:ac1725ba162c 1807
segundo 0:ac1725ba162c 1808 /**
segundo 0:ac1725ba162c 1809 * NETIF_DEBUG: Enable debugging in netif.c.
segundo 0:ac1725ba162c 1810 */
segundo 0:ac1725ba162c 1811 #ifndef NETIF_DEBUG
segundo 0:ac1725ba162c 1812 #define NETIF_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1813 #endif
segundo 0:ac1725ba162c 1814
segundo 0:ac1725ba162c 1815 /**
segundo 0:ac1725ba162c 1816 * PBUF_DEBUG: Enable debugging in pbuf.c.
segundo 0:ac1725ba162c 1817 */
segundo 0:ac1725ba162c 1818 #ifndef PBUF_DEBUG
segundo 0:ac1725ba162c 1819 #define PBUF_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1820 #endif
segundo 0:ac1725ba162c 1821
segundo 0:ac1725ba162c 1822 /**
segundo 0:ac1725ba162c 1823 * API_LIB_DEBUG: Enable debugging in api_lib.c.
segundo 0:ac1725ba162c 1824 */
segundo 0:ac1725ba162c 1825 #ifndef API_LIB_DEBUG
segundo 0:ac1725ba162c 1826 #define API_LIB_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1827 #endif
segundo 0:ac1725ba162c 1828
segundo 0:ac1725ba162c 1829 /**
segundo 0:ac1725ba162c 1830 * API_MSG_DEBUG: Enable debugging in api_msg.c.
segundo 0:ac1725ba162c 1831 */
segundo 0:ac1725ba162c 1832 #ifndef API_MSG_DEBUG
segundo 0:ac1725ba162c 1833 #define API_MSG_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1834 #endif
segundo 0:ac1725ba162c 1835
segundo 0:ac1725ba162c 1836 /**
segundo 0:ac1725ba162c 1837 * SOCKETS_DEBUG: Enable debugging in sockets.c.
segundo 0:ac1725ba162c 1838 */
segundo 0:ac1725ba162c 1839 #ifndef SOCKETS_DEBUG
segundo 0:ac1725ba162c 1840 #define SOCKETS_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1841 #endif
segundo 0:ac1725ba162c 1842
segundo 0:ac1725ba162c 1843 /**
segundo 0:ac1725ba162c 1844 * ICMP_DEBUG: Enable debugging in icmp.c.
segundo 0:ac1725ba162c 1845 */
segundo 0:ac1725ba162c 1846 #ifndef ICMP_DEBUG
segundo 0:ac1725ba162c 1847 #define ICMP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1848 #endif
segundo 0:ac1725ba162c 1849
segundo 0:ac1725ba162c 1850 /**
segundo 0:ac1725ba162c 1851 * IGMP_DEBUG: Enable debugging in igmp.c.
segundo 0:ac1725ba162c 1852 */
segundo 0:ac1725ba162c 1853 #ifndef IGMP_DEBUG
segundo 0:ac1725ba162c 1854 #define IGMP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1855 #endif
segundo 0:ac1725ba162c 1856
segundo 0:ac1725ba162c 1857 /**
segundo 0:ac1725ba162c 1858 * INET_DEBUG: Enable debugging in inet.c.
segundo 0:ac1725ba162c 1859 */
segundo 0:ac1725ba162c 1860 #ifndef INET_DEBUG
segundo 0:ac1725ba162c 1861 #define INET_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1862 #endif
segundo 0:ac1725ba162c 1863
segundo 0:ac1725ba162c 1864 /**
segundo 0:ac1725ba162c 1865 * IP_DEBUG: Enable debugging for IP.
segundo 0:ac1725ba162c 1866 */
segundo 0:ac1725ba162c 1867 #ifndef IP_DEBUG
segundo 0:ac1725ba162c 1868 #define IP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1869 #endif
segundo 0:ac1725ba162c 1870
segundo 0:ac1725ba162c 1871 /**
segundo 0:ac1725ba162c 1872 * IP_REASS_DEBUG: Enable debugging in ip_frag.c for both frag & reass.
segundo 0:ac1725ba162c 1873 */
segundo 0:ac1725ba162c 1874 #ifndef IP_REASS_DEBUG
segundo 0:ac1725ba162c 1875 #define IP_REASS_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1876 #endif
segundo 0:ac1725ba162c 1877
segundo 0:ac1725ba162c 1878 /**
segundo 0:ac1725ba162c 1879 * RAW_DEBUG: Enable debugging in raw.c.
segundo 0:ac1725ba162c 1880 */
segundo 0:ac1725ba162c 1881 #ifndef RAW_DEBUG
segundo 0:ac1725ba162c 1882 #define RAW_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1883 #endif
segundo 0:ac1725ba162c 1884
segundo 0:ac1725ba162c 1885 /**
segundo 0:ac1725ba162c 1886 * MEM_DEBUG: Enable debugging in mem.c.
segundo 0:ac1725ba162c 1887 */
segundo 0:ac1725ba162c 1888 #ifndef MEM_DEBUG
segundo 0:ac1725ba162c 1889 #define MEM_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1890 #endif
segundo 0:ac1725ba162c 1891
segundo 0:ac1725ba162c 1892 /**
segundo 0:ac1725ba162c 1893 * MEMP_DEBUG: Enable debugging in memp.c.
segundo 0:ac1725ba162c 1894 */
segundo 0:ac1725ba162c 1895 #ifndef MEMP_DEBUG
segundo 0:ac1725ba162c 1896 #define MEMP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1897 #endif
segundo 0:ac1725ba162c 1898
segundo 0:ac1725ba162c 1899 /**
segundo 0:ac1725ba162c 1900 * SYS_DEBUG: Enable debugging in sys.c.
segundo 0:ac1725ba162c 1901 */
segundo 0:ac1725ba162c 1902 #ifndef SYS_DEBUG
segundo 0:ac1725ba162c 1903 #define SYS_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1904 #endif
segundo 0:ac1725ba162c 1905
segundo 0:ac1725ba162c 1906 /**
segundo 0:ac1725ba162c 1907 * TIMERS_DEBUG: Enable debugging in timers.c.
segundo 0:ac1725ba162c 1908 */
segundo 0:ac1725ba162c 1909 #ifndef TIMERS_DEBUG
segundo 0:ac1725ba162c 1910 #define TIMERS_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1911 #endif
segundo 0:ac1725ba162c 1912
segundo 0:ac1725ba162c 1913 /**
segundo 0:ac1725ba162c 1914 * TCP_DEBUG: Enable debugging for TCP.
segundo 0:ac1725ba162c 1915 */
segundo 0:ac1725ba162c 1916 #ifndef TCP_DEBUG
segundo 0:ac1725ba162c 1917 #define TCP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1918 #endif
segundo 0:ac1725ba162c 1919
segundo 0:ac1725ba162c 1920 /**
segundo 0:ac1725ba162c 1921 * TCP_INPUT_DEBUG: Enable debugging in tcp_in.c for incoming debug.
segundo 0:ac1725ba162c 1922 */
segundo 0:ac1725ba162c 1923 #ifndef TCP_INPUT_DEBUG
segundo 0:ac1725ba162c 1924 #define TCP_INPUT_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1925 #endif
segundo 0:ac1725ba162c 1926
segundo 0:ac1725ba162c 1927 /**
segundo 0:ac1725ba162c 1928 * TCP_FR_DEBUG: Enable debugging in tcp_in.c for fast retransmit.
segundo 0:ac1725ba162c 1929 */
segundo 0:ac1725ba162c 1930 #ifndef TCP_FR_DEBUG
segundo 0:ac1725ba162c 1931 #define TCP_FR_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1932 #endif
segundo 0:ac1725ba162c 1933
segundo 0:ac1725ba162c 1934 /**
segundo 0:ac1725ba162c 1935 * TCP_RTO_DEBUG: Enable debugging in TCP for retransmit
segundo 0:ac1725ba162c 1936 * timeout.
segundo 0:ac1725ba162c 1937 */
segundo 0:ac1725ba162c 1938 #ifndef TCP_RTO_DEBUG
segundo 0:ac1725ba162c 1939 #define TCP_RTO_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1940 #endif
segundo 0:ac1725ba162c 1941
segundo 0:ac1725ba162c 1942 /**
segundo 0:ac1725ba162c 1943 * TCP_CWND_DEBUG: Enable debugging for TCP congestion window.
segundo 0:ac1725ba162c 1944 */
segundo 0:ac1725ba162c 1945 #ifndef TCP_CWND_DEBUG
segundo 0:ac1725ba162c 1946 #define TCP_CWND_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1947 #endif
segundo 0:ac1725ba162c 1948
segundo 0:ac1725ba162c 1949 /**
segundo 0:ac1725ba162c 1950 * TCP_WND_DEBUG: Enable debugging in tcp_in.c for window updating.
segundo 0:ac1725ba162c 1951 */
segundo 0:ac1725ba162c 1952 #ifndef TCP_WND_DEBUG
segundo 0:ac1725ba162c 1953 #define TCP_WND_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1954 #endif
segundo 0:ac1725ba162c 1955
segundo 0:ac1725ba162c 1956 /**
segundo 0:ac1725ba162c 1957 * TCP_OUTPUT_DEBUG: Enable debugging in tcp_out.c output functions.
segundo 0:ac1725ba162c 1958 */
segundo 0:ac1725ba162c 1959 #ifndef TCP_OUTPUT_DEBUG
segundo 0:ac1725ba162c 1960 #define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1961 #endif
segundo 0:ac1725ba162c 1962
segundo 0:ac1725ba162c 1963 /**
segundo 0:ac1725ba162c 1964 * TCP_RST_DEBUG: Enable debugging for TCP with the RST message.
segundo 0:ac1725ba162c 1965 */
segundo 0:ac1725ba162c 1966 #ifndef TCP_RST_DEBUG
segundo 0:ac1725ba162c 1967 #define TCP_RST_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1968 #endif
segundo 0:ac1725ba162c 1969
segundo 0:ac1725ba162c 1970 /**
segundo 0:ac1725ba162c 1971 * TCP_QLEN_DEBUG: Enable debugging for TCP queue lengths.
segundo 0:ac1725ba162c 1972 */
segundo 0:ac1725ba162c 1973 #ifndef TCP_QLEN_DEBUG
segundo 0:ac1725ba162c 1974 #define TCP_QLEN_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1975 #endif
segundo 0:ac1725ba162c 1976
segundo 0:ac1725ba162c 1977 /**
segundo 0:ac1725ba162c 1978 * UDP_DEBUG: Enable debugging in UDP.
segundo 0:ac1725ba162c 1979 */
segundo 0:ac1725ba162c 1980 #ifndef UDP_DEBUG
segundo 0:ac1725ba162c 1981 #define UDP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1982 #endif
segundo 0:ac1725ba162c 1983
segundo 0:ac1725ba162c 1984 /**
segundo 0:ac1725ba162c 1985 * TCPIP_DEBUG: Enable debugging in tcpip.c.
segundo 0:ac1725ba162c 1986 */
segundo 0:ac1725ba162c 1987 #ifndef TCPIP_DEBUG
segundo 0:ac1725ba162c 1988 #define TCPIP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1989 #endif
segundo 0:ac1725ba162c 1990
segundo 0:ac1725ba162c 1991 /**
segundo 0:ac1725ba162c 1992 * PPP_DEBUG: Enable debugging for PPP.
segundo 0:ac1725ba162c 1993 */
segundo 0:ac1725ba162c 1994 #ifndef PPP_DEBUG
segundo 0:ac1725ba162c 1995 #define PPP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 1996 #endif
segundo 0:ac1725ba162c 1997
segundo 0:ac1725ba162c 1998 /**
segundo 0:ac1725ba162c 1999 * SLIP_DEBUG: Enable debugging in slipif.c.
segundo 0:ac1725ba162c 2000 */
segundo 0:ac1725ba162c 2001 #ifndef SLIP_DEBUG
segundo 0:ac1725ba162c 2002 #define SLIP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 2003 #endif
segundo 0:ac1725ba162c 2004
segundo 0:ac1725ba162c 2005 /**
segundo 0:ac1725ba162c 2006 * DHCP_DEBUG: Enable debugging in dhcp.c.
segundo 0:ac1725ba162c 2007 */
segundo 0:ac1725ba162c 2008 #ifndef DHCP_DEBUG
segundo 0:ac1725ba162c 2009 #define DHCP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 2010 #endif
segundo 0:ac1725ba162c 2011
segundo 0:ac1725ba162c 2012 /**
segundo 0:ac1725ba162c 2013 * AUTOIP_DEBUG: Enable debugging in autoip.c.
segundo 0:ac1725ba162c 2014 */
segundo 0:ac1725ba162c 2015 #ifndef AUTOIP_DEBUG
segundo 0:ac1725ba162c 2016 #define AUTOIP_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 2017 #endif
segundo 0:ac1725ba162c 2018
segundo 0:ac1725ba162c 2019 /**
segundo 0:ac1725ba162c 2020 * SNMP_MSG_DEBUG: Enable debugging for SNMP messages.
segundo 0:ac1725ba162c 2021 */
segundo 0:ac1725ba162c 2022 #ifndef SNMP_MSG_DEBUG
segundo 0:ac1725ba162c 2023 #define SNMP_MSG_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 2024 #endif
segundo 0:ac1725ba162c 2025
segundo 0:ac1725ba162c 2026 /**
segundo 0:ac1725ba162c 2027 * SNMP_MIB_DEBUG: Enable debugging for SNMP MIBs.
segundo 0:ac1725ba162c 2028 */
segundo 0:ac1725ba162c 2029 #ifndef SNMP_MIB_DEBUG
segundo 0:ac1725ba162c 2030 #define SNMP_MIB_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 2031 #endif
segundo 0:ac1725ba162c 2032
segundo 0:ac1725ba162c 2033 /**
segundo 0:ac1725ba162c 2034 * DNS_DEBUG: Enable debugging for DNS.
segundo 0:ac1725ba162c 2035 */
segundo 0:ac1725ba162c 2036 #ifndef DNS_DEBUG
segundo 0:ac1725ba162c 2037 #define DNS_DEBUG LWIP_DBG_OFF
segundo 0:ac1725ba162c 2038 #endif
segundo 0:ac1725ba162c 2039
segundo 0:ac1725ba162c 2040 #endif /* __LWIP_OPT_H__ */