Dependents:   RTnoV3 RTnoV3_LED RTnoV3_Template RTnoV3_ADC ... more

Committer:
sherckuith
Date:
Sat Dec 31 11:25:27 2011 +0000
Revision:
0:479ce5546098
Ethernet

Who changed what in which revision?

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