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