Stripped down version of Segundos NetService library (http://mbed.org/users/segundo/libraries/NetServices ). I have removed all NetServices, and all functions which had been disabled. Use this version when you need only pure TCP or UDP functions - this library compiles faster.

Dependencies:   lwip lwip-sys

Dependents:   christmasLights device_server pop3demo device_server_udp ... more

Committer:
hlipka
Date:
Mon Jan 10 21:03:11 2011 +0000
Revision:
0:8b387bed54c2
initial version

Who changed what in which revision?

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