mbeduino + Weatherduino Weather Stations post test

Dependencies:   mbed

Committer:
okini3939
Date:
Tue Oct 26 17:19:28 2010 +0000
Revision:
0:10bcaa7c2253

        

Who changed what in which revision?

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