Xbee test 2

Dependencies:   XBee mbed

Committer:
takashiyamanoue
Date:
Sat Jul 21 04:08:27 2012 +0000
Revision:
0:ffac63d6a7f0
xbee test 2

Who changed what in which revision?

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