Netservices modded to read fragmented HTTP respsonse/payload from special purpose server - 180 bytes only

Committer:
RodColeman
Date:
Thu Sep 08 10:48:09 2011 +0000
Revision:
0:850eacf3e945
revised fixed length to 178 bytes

Who changed what in which revision?

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