wip

Dependents:   EthernetInterface_vz

Fork of lwip by VZTECH

Committer:
klauss
Date:
Tue Apr 07 14:27:01 2015 +0000
Revision:
30:cb9095482c25
Parent:
29:da6f39d13880
wip

Who changed what in which revision?

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