TwitterExample with newer library (2012Aug)

Dependencies:   EthernetNetIf HTTPClient mbed

Committer:
nxpfan
Date:
Wed Aug 29 03:50:19 2012 +0000
Revision:
0:075157567b0c
simple twitter example with newer library

Who changed what in which revision?

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