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