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