Dependents:   SNMPAgent HTTPServer think_speak_a cyassl-client ... more

Committer:
mamezu
Date:
Thu Dec 09 01:33:56 2010 +0000
Revision:
0:0f6c82fcde82

        

Who changed what in which revision?

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