OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [lwip_tcpip/] [current/] [include/] [lwipopts.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#ifndef CYGONCE_LWIPOPTS_H
2
#define CYGONCE_LWIPOPTS_H
3
//==========================================================================
4
//####ECOSGPLCOPYRIGHTBEGIN####
5
// -------------------------------------------
6
// This file is part of eCos, the Embedded Configurable Operating System.
7
// Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation
8
//
9
// eCos is free software; you can redistribute it and/or modify it under
10
// the terms of the GNU General Public License as published by the Free
11
// Software Foundation; either version 2 or (at your option) any later version.
12
//
13
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
14
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16
// for more details.
17
//
18
// You should have received a copy of the GNU General Public License along
19
// with eCos; if not, write to the Free Software Foundation, Inc.,
20
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21
//
22
// As a special exception, if other files instantiate templates or use macros
23
// or inline functions from this file, or you compile this file and link it
24
// with other works to produce a work based on this file, this file does not
25
// by itself cause the resulting work to be covered by the GNU General Public
26
// License. However the source code for this file must still be made available
27
// in accordance with section (3) of the GNU General Public License.
28
//
29
// This exception does not invalidate any other reasons why a work based on
30
// this file might be covered by the GNU General Public License.
31
// -------------------------------------------
32
//####ECOSGPLCOPYRIGHTEND####
33
//==========================================================================
34
 
35
#include <pkgconf/net_lwip.h>
36
 
37
#include <cyg/hal/hal_arch.h>
38
 
39
#if defined(CYGIMP_LWIP_ENDIAN_BY_HAL) && CYGIMP_LWIP_ENDIAN_BY_HAL
40
# include <cyg/hal/hal_endian.h>
41
#endif
42
 
43
//------------------------------------------------------------------------------
44
// Platform specific locking
45
//------------------------------------------------------------------------------
46
 
47
#define SYS_LIGHTWEIGHT_PROT        1
48
#define NO_SYS                      defined(CYGFUN_LWIP_MODE_SIMPLE)
49
 
50
//------------------------------------------------------------------------------
51
// Architecture specific options
52
//------------------------------------------------------------------------------
53
 
54
#if defined(CYGIMP_LWIP_ENDIAN_BY_HAL) && CYGIMP_LWIP_ENDIAN_BY_HAL
55
# define LWIP_PLATFORM_BYTESWAP     1
56
# define LWIP_PLATFORM_HTONS(__val) CYG_CPU_TO_BE16(__val)
57
# define LWIP_PLATFORM_HTONL(__val) CYG_CPU_TO_BE32(__val)
58
#endif
59
 
60
//------------------------------------------------------------------------------
61
// Memory options
62
//------------------------------------------------------------------------------
63
 
64
#define MEM_LIBC_MALLOC             defined(CYGIMP_LWIP_MEM_LIBC_MALLOC)
65
#define MEMP_MEM_MALLOC             defined(CYGIMP_LWIP_MEMP_MEM_MALLOC)
66
#define MEM_ALIGNMENT               CYGNUM_LWIP_MEM_ALIGNMENT
67
#define MEM_SIZE                    CYGNUM_LWIP_MEM_SIZE
68
 
69
#if defined(CYGSEM_LWIP_MEM_SECTION) && CYGSEM_LWIP_MEM_SECTION
70
# include <cyg/infra/cyg_type.h>
71
# define MEM_SECTION CYGBLD_ATTRIB_SECTION(CYGDAT_LWIP_MEM_SECTION_NAME)
72
#else
73
# define MEM_SECTION
74
#endif
75
 
76
#define MEMP_OVERFLOW_CHECK         defined(CYGDBG_LWIP_MEMP_OVERFLOW_CHECK)
77
#define MEMP_SANITY_CHECK           defined(CYGDBG_LWIP_MEMP_SANITY_CHECK)
78
 
79
//#define MEM_USE_POOLS                             // not configurable
80
//#define MEM_USE_POOLS_TRY_BIGGER_POOL             // not configurable
81
//#define MEMP_USE_CUSTOM_POOLS                     // not configurable
82
//#define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT    // not configurable
83
 
84
//------------------------------------------------------------------------------
85
// Internal memory pool sizes
86
//------------------------------------------------------------------------------
87
 
88
#define MEMP_NUM_PBUF               CYGNUM_LWIP_MEMP_NUM_PBUF
89
#ifdef CYGPKG_LWIP_TCP
90
# define MEMP_NUM_TCP_PCB           CYGNUM_LWIP_MEMP_NUM_TCP_PCB
91
# define MEMP_NUM_TCP_PCB_LISTEN    CYGNUM_LWIP_MEMP_NUM_TCP_PCB_LISTEN
92
# define MEMP_NUM_TCP_SEG           CYGNUM_LWIP_MEMP_NUM_TCP_SEG
93
#endif
94
#define MEMP_NUM_REASSDATA          CYGNUM_LWIP_MEMP_NUM_REASSDATA
95
#ifdef CYGFUN_LWIP_ARP_QUEUEING
96
# define MEMP_NUM_ARP_QUEUE         CYGNUM_LWIP_MEMP_NUM_ARP_QUEUE
97
#endif
98
#ifdef CYGPKG_LWIP_IGMP
99
# define MEMP_NUM_IGMP_GROUP        CYGNUM_LWIP_MEMP_NUM_IGMP_GROUP
100
#endif
101
#define MEMP_NUM_SYS_TIMEOUT        (CYGNUM_LWIP_MEMP_NUM_CORE_SYS_TIMEOUT + \
102
                                     CYGNUM_LWIP_MEMP_NUM_USER_SYS_TIMEOUT)
103
#define MEMP_NUM_NETBUF             CYGNUM_LWIP_MEMP_NUM_NETBUF
104
#define MEMP_NUM_NETCONN            CYGNUM_LWIP_MEMP_NUM_NETCONN
105
#define MEMP_NUM_TCPIP_MSG_API      CYGNUM_LWIP_MEMP_NUM_TCPIP_MSG_API
106
#define MEMP_NUM_TCPIP_MSG_INPKT    CYGNUM_LWIP_MEMP_NUM_TCPIP_MSG_INPKT
107
#define PBUF_POOL_SIZE              CYGNUM_LWIP_PBUF_POOL_SIZE
108
 
109
//------------------------------------------------------------------------------
110
// ARP options
111
//------------------------------------------------------------------------------
112
 
113
#ifdef CYGPKG_LWIP_ARP
114
# define LWIP_ARP                   1
115
# define ARP_TABLE_SIZE             CYGNUM_LWIP_ARP_TABLE_SIZE
116
# define ARP_QUEUEING               defined(CYGFUN_LWIP_ARP_QUEUEING)
117
# define ETHARP_TRUST_IP_MAC        defined(CYGFUN_LWIP_ETHARP_TRUST_IP_MAC)
118
#endif
119
 
120
//------------------------------------------------------------------------------
121
// IP options
122
//------------------------------------------------------------------------------
123
 
124
#ifdef CYGFUN_LWIP_IP_FORWARD
125
# define IP_FORWARD                 1
126
#endif
127
#define IP_OPTIONS_ALLOWED          defined(CYGFUN_LWIP_IP_OPTIONS_ALLOWED)
128
#define IP_REASSEMBLY               defined(CYGFUN_LWIP_IP_REASSEMBLY)
129
#define IP_FRAG                     defined(CYGFUN_LWIP_IP_FRAG)
130
#define IP_REASS_MAXAGE             CYGNUM_LWIP_IP_REASS_MAXAGE
131
#define IP_REASS_MAX_PBUFS          CYGNUM_LWIP_IP_REASS_MAX_PBUFS
132
#define IP_FRAG_USES_STATIC_BUF     defined(CYGFUN_LWIP_IP_FRAG_USES_STATIC_BUF)
133
#ifdef CYGFUN_LWIP_IP_FRAG_USES_STATIC_BUF
134
# define IP_FRAG_MAX_MTU            CYGNUM_LWIP_IP_FRAG_MAX_MTU
135
#endif
136
#define IP_DEFAULT_TTL              CYGNUM_LWIP_IP_DEFAULT_TTL
137
#define IP_SOF_BROADCAST            defined(CYGFUN_LWIP_IP_SOF_BROADCAST)
138
#define IP_SOF_BROADCAST_RECV       defined(CYGFUN_LWIP_IP_SOF_BROADCAST_RECV)
139
 
140
//------------------------------------------------------------------------------
141
// ICMP options
142
//------------------------------------------------------------------------------
143
 
144
#ifdef CYGPKG_LWIP_ICMP
145
# define LWIP_ICMP                  1
146
# define ICMP_TTL                   CYGNUM_LWIP_ICMP_TTL
147
# define LWIP_BROADCAST_PING        defined(CYGFUN_LWIP_BROADCAST_PING)
148
# define LWIP_MULTICAST_PING        defined(CYGFUN_LWIP_MULTICAST_PING)
149
#endif
150
 
151
//------------------------------------------------------------------------------
152
// RAW options
153
//------------------------------------------------------------------------------
154
 
155
#ifdef CYGPKG_LWIP_RAW
156
# define LWIP_RAW                   1
157
# define RAW_TTL                    CYGNUM_LWIP_RAW_TTL
158
#endif
159
 
160
//------------------------------------------------------------------------------
161
// DHCP options
162
//------------------------------------------------------------------------------
163
 
164
#ifdef CYGPKG_LWIP_DHCP
165
# define LWIP_DHCP                  1
166
# ifdef CYGPKG_LWIP_ARP
167
#  define DHCP_DOES_ARP_CHECK       defined(CYGFUN_LWIP_DHCP_DOES_ARP_CHECK)
168
# endif
169
#endif
170
 
171
//------------------------------------------------------------------------------
172
// AUTOIP options
173
//------------------------------------------------------------------------------
174
 
175
#ifdef CYGPKG_LWIP_AUTOIP
176
# define LWIP_AUTOIP                1
177
# ifdef CYGPKG_LWIP_DHCP
178
#  define LWIP_DHCP_AUTOIP_COOP     defined(CYGFUN_LWIP_DHCP_AUTOIP_COOP)
179
# endif
180
#endif
181
 
182
//------------------------------------------------------------------------------
183
// SNMP options
184
//------------------------------------------------------------------------------
185
 
186
#ifdef CYGPKG_LWIP_SNMP
187
# define LWIP_SNMP                  1
188
# define SNMP_CONCURRENT_REQUESTS   CYGNUM_LWIP_SNMP_CONCURRENT_REQUESTS
189
# define SNMP_TRAP_DESTINATIONS     CYGNUM_LWIP_SNMP_TRAP_DESTINATIONS
190
# define SNMP_PRIVATE_MIB           defined(CYGFUN_LWIP_SNMP_PRIVATE_MIB)
191
# define SNMP_SAFE_REQUESTS         defined(CYGFUN_LWIP_SNMP_SAFE_REQUESTS)
192
#endif
193
 
194
//------------------------------------------------------------------------------
195
// IGMP options
196
//------------------------------------------------------------------------------
197
 
198
#ifdef CYGPKG_LWIP_IGMP
199
# define LWIP_IGMP                  1
200
#endif
201
 
202
//------------------------------------------------------------------------------
203
// DNS options
204
//------------------------------------------------------------------------------
205
 
206
#ifdef CYGPKG_LWIP_DNS
207
# define LWIP_DNS                   1
208
# define DNS_TABLE_SIZE             CYGNUM_LWIP_DNS_TABLE_SIZE
209
# define DNS_MAX_NAME_LENGTH        CYGNUM_LWIP_DNS_MAX_NAME_LENGTH
210
# define DNS_MAX_SERVERS            CYGNUM_LWIP_DNS_MAX_SERVERS
211
# define DNS_DOES_NAME_CHECK        defined(CYGFUN_LWIP_DNS_DOES_NAME_CHECK)
212
# define DNS_USES_STATIC_BUF        CYGNUM_LWIP_DNS_USES_STATIC_BUF
213
# define DNS_MSG_SIZE               CYGNUM_LWIP_DNS_MSG_SIZE
214
# ifdef CYGPKG_LWIP_DNS_LOCAL_HOSTLIST
215
#  define DNS_LOCAL_HOSTLIST        1
216
#  define DNS_LOCAL_HOSTLIST_INIT   CYGDAT_LWIP_DNS_LOCAL_HOSTLIST_INIT
217
#  define DNS_LOCAL_HOSTLIST_IS_DYNAMIC defined(CYGFUN_LWIP_DNS_LOCAL_HOSTLIST_IS_DYNAMIC)
218
# endif
219
#endif
220
 
221
//------------------------------------------------------------------------------
222
// UDP options
223
//------------------------------------------------------------------------------
224
 
225
#ifdef CYGPKG_LWIP_UDP
226
# define LWIP_UDP                   1
227
# define LWIP_UDPLITE               defined(CYGFUN_LWIP_UDPLITE)
228
# define UDP_TTL                    CYGNUM_LWIP_UDP_TTL
229
#endif
230
 
231
//------------------------------------------------------------------------------
232
// TCP options
233
//------------------------------------------------------------------------------
234
 
235
#ifdef CYGPKG_LWIP_TCP
236
# define LWIP_TCP                   1
237
# define TCP_TTL                    CYGNUM_LWIP_TCP_TTL
238
# define TCP_WND                    CYGNUM_LWIP_TCP_WND
239
# define TCP_MAXRTX                 CYGNUM_LWIP_TCP_MAXRTX
240
# define TCP_SYNMAXRTX              CYGNUM_LWIP_TCP_SYNMAXRTX
241
# define TCP_QUEUE_OOSEQ            defined(CYGFUN_LWIP_TCP_QUEUE_OOSEQ)
242
# define TCP_MSS                    CYGNUM_LWIP_TCP_MSS
243
# define TCP_CALCULATE_EFF_SEND_MSS defined(CYGFUN_LWIP_TCP_CALCULATE_EFF_SEND_MSS)
244
# define TCP_SND_BUF                CYGNUM_LWIP_TCP_SND_BUF
245
# define TCP_SND_QUEUELEN           CYGNUM_LWIP_TCP_SND_QUEUELEN
246
# define TCP_SNDLOWAT               CYGNUM_LWIP_TCP_SNDLOWAT
247
# ifdef CYGFUN_LWIP_TCP_LISTEN_BACKLOG
248
#  define TCP_LISTEN_BACKLOG        1
249
#  define TCP_DEFAULT_LISTEN_BACKLOG CYGNUM_LWIP_TCP_DEFAULT_LISTEN_BACKLOG
250
# endif
251
# define LWIP_TCP_TIMESTAMPS        defined(CYGFUN_LWIP_TCP_TIMESTAMPS)
252
# define TCP_WND_UPDATE_THRESHOLD   CYGNUM_LWIP_TCP_WND_UPDATE_THRESHOLD
253
# ifdef CYGFUN_LWIP_EVENT_API
254
#  define LWIP_EVENT_API            1
255
# endif
256
# ifdef CYGFUN_LWIP_CALLBACK_API
257
#  define LWIP_CALLBACK_API         1
258
# endif
259
#endif
260
 
261
//------------------------------------------------------------------------------
262
// Pbuf options
263
//------------------------------------------------------------------------------
264
 
265
#define PBUF_LINK_HLEN              CYGNUM_LWIP_PBUF_LINK_HLEN
266
#define PBUF_POOL_BUFSIZE           CYGNUM_LWIP_PBUF_POOL_BUFSIZE
267
 
268
//------------------------------------------------------------------------------
269
// Network interfaces options
270
//------------------------------------------------------------------------------
271
 
272
#define LWIP_NETIF_API              defined(CYGPKG_LWIP_NETIF_API)
273
#define LWIP_NETIF_HOSTNAME         defined(CYGIMP_LWIP_NETIF_HOSTNAME)
274
#define LWIP_NETIF_STATUS_CALLBACK  defined(CYGFUN_LWIP_NETIF_STATUS_CALLBACK)
275
#define LWIP_NETIF_LINK_CALLBACK    defined(CYGFUN_LWIP_NETIF_LINK_CALLBACK)
276
#define LWIP_NETIF_HWADDRHINT       defined(CYGIMP_LWIP_NETIF_HWADDRHINT)
277
#define LWIP_NETIF_LOOPBACK         defined(CYGIMP_LWIP_NETIF_LOOPBACK)
278
#define LWIP_LOOPBACK_MAX_PBUFS     CYGNUM_LWIP_NETIF_LOOPBACK_MAX_PBUFS
279
//#define LWIP_NETIF_LOOPBACK_MULTITHREADING // not configurable
280
//#define LWIP_NETIF_TX_SINGLE_PBUF // not configurable
281
 
282
//------------------------------------------------------------------------------
283
// LOOPIF options
284
//------------------------------------------------------------------------------
285
 
286
#ifdef CYGPKG_LWIP_LOOPIF
287
# define LWIP_HAVE_LOOPIF           1
288
#endif
289
 
290
//------------------------------------------------------------------------------
291
// SLIPIF options
292
//------------------------------------------------------------------------------
293
 
294
#ifdef CYGPKG_LWIP_SLIP
295
# define LWIP_HAVE_SLIPIF           1
296
#endif
297
 
298
//------------------------------------------------------------------------------
299
// Thread options
300
//------------------------------------------------------------------------------
301
 
302
#ifdef CYGFUN_LWIP_MODE_SEQUENTIAL
303
# define TCPIP_THREAD_NAME          "tcpip"
304
# define TCPIP_THREAD_PRIO          CYGNUM_LWIP_THREAD_TCPIP_PRIORITY
305
//# define TCPIP_MBOX_SIZE          // not configurable
306
# if CYGNUM_LWIP_THREAD_TCPIP_STACKSIZE < CYGNUM_HAL_STACK_SIZE_MINIMUM
307
#  define TCPIP_THREAD_STACKSIZE    CYGNUM_HAL_STACK_SIZE_MINIMUM
308
# else
309
#  define TCPIP_THREAD_STACKSIZE    CYGNUM_LWIP_THREAD_TCPIP_STACKSIZE
310
# endif
311
#else
312
# define TCPIP_THREAD_STACKSIZE     0
313
#endif
314
 
315
#if defined(CYGFUN_LWIP_MODE_SEQUENTIAL) && defined(CYGPKG_LWIP_SLIP)
316
# define SLIPIF_THREAD_NAME         "slipif"
317
# if CYGNUM_LWIP_THREAD_SLIP_STACKSIZE < CYGNUM_HAL_STACK_SIZE_MINIMUM
318
#  define SLIPIF_THREAD_STACKSIZE   CYGNUM_HAL_STACK_SIZE_MINIMUM
319
# else
320
#  define SLIPIF_THREAD_STACKSIZE   CYGNUM_LWIP_THREAD_SLIP_STACKSIZE
321
# endif
322
# define SLIPIF_THREAD_PRIO         CYGNUM_LWIP_THREAD_SLIP_PRIORITY
323
#else
324
# define SLIPIF_THREAD_STACKSIZE    0
325
#endif
326
 
327
#if defined(CYGFUN_LWIP_MODE_SEQUENTIAL) && defined(CYGFUN_LWIP_PPPOS_SUPPORT)
328
# define PPP_THREAD_NAME            "ppp"
329
# if CYGNUM_LWIP_THREAD_PPPOS_STACKSIZE < CYGNUM_HAL_STACK_SIZE_MINIMUM
330
#  define PPP_THREAD_STACKSIZE      CYGNUM_HAL_STACK_SIZE_MINIMUM
331
# else
332
#  define PPP_THREAD_STACKSIZE      CYGNUM_LWIP_THREAD_PPPOS_STACKSIZE
333
# endif
334
# define PPP_THREAD_PRIO            CYGNUM_LWIP_THREAD_PPPOS_PRIORITY
335
#else
336
# define PPP_THREAD_STACKSIZE       0
337
#endif
338
 
339
#if defined(CYGFUN_LWIP_MODE_SEQUENTIAL) && defined(CYGPKG_LWIP_ETH)
340
# define ETH_THREAD_NAME            "eth"
341
# if CYGNUM_LWIP_THREAD_ETH_STACKSIZE < CYGNUM_HAL_STACK_SIZE_MINIMUM
342
#  define ETH_THREAD_STACKSIZE      CYGNUM_HAL_STACK_SIZE_MINIMUM
343
# else
344
#  define ETH_THREAD_STACKSIZE      CYGNUM_LWIP_THREAD_ETH_STACKSIZE
345
# endif
346
# define ETH_THREAD_PRIO            CYGNUM_LWIP_THREAD_ETH_PRIORITY
347
#else
348
# define ETH_THREAD_STACKSIZE       0
349
#endif
350
 
351
//#define DEFAULT_THREAD_NAME       // not configurable
352
//#define DEFAULT_THREAD_STACKSIZE  // not configurable
353
//#define DEFAULT_THREAD_PRIO       // not configurable
354
//#define DEFAULT_RAW_RECVMBOX_SIZE // not configurable
355
//#define DEFAULT_UDP_RECVMBOX_SIZE // not configurable
356
//#define DEFAULT_TCP_RECVMBOX_SIZE // not configurable
357
//#define DEFAULT_ACCEPTMBOX_SIZE   // not configurable
358
 
359
//------------------------------------------------------------------------------
360
// Sequential layer options
361
//------------------------------------------------------------------------------
362
 
363
//#define LWIP_TCPIP_CORE_LOCKING   // not configurable
364
#define LWIP_NETCONN                defined(CYGPKG_LWIP_NETCONN_API)
365
 
366
//------------------------------------------------------------------------------
367
// Socket options
368
//------------------------------------------------------------------------------
369
 
370
#ifdef CYGPKG_LWIP_SOCKET_API
371
# define LWIP_SOCKET                1
372
# define LWIP_COMPAT_SOCKETS        defined(CYGFUN_LWIP_COMPAT_SOCKETS)
373
# define LWIP_POSIX_SOCKETS_IO_NAMES defined(CYGFUN_LWIP_POSIX_SOCKETS_IO_NAMES)
374
# define LWIP_TCP_KEEPALIVE         defined(CYGFUN_LWIP_TCP_KEEPALIVE)
375
# define LWIP_SO_RCVTIMEO           defined(CYGFUN_LWIP_SO_RCVTIMEO)
376
# define LWIP_SO_RCVBUF             defined(CYGFUN_LWIP_SO_RCVBUF)
377
//# define RECV_BUFSIZE_DEFAULT     // not configurable
378
//# define SO_REUSE                 // not configurable
379
#else
380
# define LWIP_SOCKET                0
381
#endif
382
 
383
//------------------------------------------------------------------------------
384
// Statistics options
385
//------------------------------------------------------------------------------
386
 
387
#ifdef CYGPKG_LWIP_STATS
388
# define LWIP_STATS                 1
389
# define LWIP_STATS_DISPLAY         1
390
# define LINK_STATS                 defined(CYGVAR_LWIP_LINK_STATS)
391
# ifdef CYGPKG_LWIP_ARP
392
#  define ETHARP_STATS              defined(CYGVAR_LWIP_ETHARP_STATS)
393
# endif
394
# define IP_STATS                   defined(CYGVAR_LWIP_IP_STATS)
395
# if defined(CYGFUN_LWIP_IP_REASSEMBLY) || defined(CYGFUN_LWIP_IP_FRAG)
396
#  define IPFRAG_STATS              defined(CYGVAR_LWIP_IPFRAG_STATS)
397
# endif
398
# ifdef CYGPKG_LWIP_ICMP
399
#  define ICMP_STATS                defined(CYGVAR_LWIP_ICMP_STATS)
400
# endif
401
# ifdef CYGPKG_LWIP_IGMP
402
#  define IGMP_STATS                defined(CYGVAR_LWIP_IGMP_STATS)
403
# endif
404
# ifdef CYGPKG_LWIP_UDP
405
#  define UDP_STATS                 defined(CYGVAR_LWIP_UDP_STATS)
406
# endif
407
# ifdef CYGPKG_LWIP_TCP
408
#  define TCP_STATS                 defined(CYGVAR_LWIP_TCP_STATS)
409
# endif
410
# define MEM_STATS                  defined(CYGVAR_LWIP_MEM_STATS)
411
# define MEMP_STATS                 defined(CYGVAR_LWIP_MEMP_STATS)
412
# define SYS_STATS                  defined(CYGVAR_LWIP_SYS_STATS)
413
#endif
414
 
415
//------------------------------------------------------------------------------
416
// PPP options
417
//------------------------------------------------------------------------------
418
 
419
#ifdef CYGPKG_LWIP_PPP
420
# define PPP_SUPPORT                1
421
# define PPPOE_SUPPORT              defined(CYGFUN_LWIP_PPPOE_SUPPORT)
422
# define PPPOS_SUPPORT              defined(CYGFUN_LWIP_PPPOS_SUPPORT)
423
# define NUM_PPP                    CYGNUM_LWIP_NUM_PPP
424
# ifdef CYGFUN_LWIP_PAP_SUPPORT
425
#  define PAP_SUPPORT               1
426
# else
427
#  define PAP_SUPPORT               0
428
# endif
429
# ifdef CYGFUN_LWIP_CHAP_SUPPORT
430
#  define CHAP_SUPPORT              1
431
# else
432
#  define CHAP_SUPPORT              0
433
# endif
434
//# define MSCHAP_SUPPORT           // not supported yet
435
//# define CBCP_SUPPORT             // not supported yet
436
//# define CCP_SUPPORT              // not supported yet
437
# define VJ_SUPPORT                 defined(CYGFUN_LWIP_VJ_SUPPORT)
438
# define MD5_SUPPORT                defined(CYGFUN_LWIP_MD5_SUPPORT)
439
# define RECORD_SUPPORT             defined(CYGFUN_LWIP_RECORD_SUPPORT)
440
 
441
//# define FSM_DEFTIMEOUT           // not configurable
442
//# define FSM_DEFMAXTERMREQS       // not configurable
443
//# define FSM_DEFMAXCONFREQS       // not configurable
444
//# define FSM_DEFMAXNAKLOOPS       // not configurable
445
//# define UPAP_DEFTIMEOUT          // not configurable
446
//# define UPAP_DEFREQTIME          // not configurable
447
//# define CHAP_DEFTIMEOUT          // not configurable
448
//# define CHAP_DEFTRANSMITS        // not configurable
449
//# define LCP_ECHOINTERVAL         // not configurable
450
//# define LCP_MAXECHOFAILS         // not configurable
451
//# define PPP_MAXIDLEFLAG          // not configurable
452
//# define PPP_MAXMTU               // not configurable
453
//# define PPP_DEFMRU               // not configurable
454
#endif
455
 
456
//------------------------------------------------------------------------------
457
// Checksum options
458
//------------------------------------------------------------------------------
459
 
460
#define CHECKSUM_GEN_IP             defined(CYGIMP_LWIP_CHECKSUM_GEN_IP)
461
#define CHECKSUM_GEN_UDP            defined(CYGIMP_LWIP_CHECKSUM_GEN_UDP)
462
#define CHECKSUM_GEN_TCP            defined(CYGIMP_LWIP_CHECKSUM_GEN_TCP)
463
#define CHECKSUM_CHECK_IP           defined(CYGIMP_LWIP_CHECKSUM_CHECK_IP)
464
#define CHECKSUM_CHECK_UDP          defined(CYGIMP_LWIP_CHECKSUM_CHECK_UDP)
465
#define CHECKSUM_CHECK_TCP          defined(CYGIMP_LWIP_CHECKSUM_CHECK_TCP)
466
 
467
//------------------------------------------------------------------------------
468
// Debugging options
469
//------------------------------------------------------------------------------
470
 
471
#ifdef CYGDBG_LWIP_DEBUG
472
# define LWIP_DEBUG                 1
473
// Modules
474
# ifdef CYGDBG_LWIP_DEBUG_ETHARP
475
#  define ETHARP_DEBUG              LWIP_DBG_ON
476
# endif
477
# ifdef CYGDBG_LWIP_DEBUG_NETIF
478
#  define NETIF_DEBUG               LWIP_DBG_ON
479
# endif
480
# ifdef CYGDBG_LWIP_DEBUG_PBUF
481
#  define PBUF_DEBUG                LWIP_DBG_ON
482
# endif
483
# ifdef CYGDBG_LWIP_DEBUG_API
484
#  define API_LIB_DEBUG             LWIP_DBG_ON
485
#  define API_MSG_DEBUG             LWIP_DBG_ON
486
# endif
487
# ifdef CYGDBG_LWIP_DEBUG_SOCKETS
488
#  define SOCKETS_DEBUG             LWIP_DBG_ON
489
# endif
490
# ifdef CYGDBG_LWIP_DEBUG_ICMP
491
#  define ICMP_DEBUG                LWIP_DBG_ON
492
# endif
493
# ifdef CYGDBG_LWIP_DEBUG_IGMP
494
#  define IGMP_DEBUG                LWIP_DBG_ON
495
# endif
496
# ifdef CYGDBG_LWIP_DEBUG_IP
497
#  define INET_DEBUG                LWIP_DBG_ON
498
#  define IP_DEBUG                  LWIP_DBG_ON
499
#  define IP_REASS_DEBUG            LWIP_DBG_ON
500
# endif
501
# ifdef CYGDBG_LWIP_DEBUG_RAW
502
#  define RAW_DEBUG                 LWIP_DBG_ON
503
# endif
504
# ifdef CYGDBG_LWIP_DEBUG_MEM
505
#  define MEM_DEBUG                 LWIP_DBG_ON
506
#  define MEMP_DEBUG                LWIP_DBG_ON
507
# endif
508
# ifdef CYGDBG_LWIP_DEBUG_SYS
509
#  define SYS_DEBUG                 LWIP_DBG_ON
510
# endif
511
# ifdef CYGDBG_LWIP_DEBUG_TCP
512
#  define TCP_DEBUG                 LWIP_DBG_ON
513
#  define TCP_INPUT_DEBUG           LWIP_DBG_ON
514
#  define TCP_FR_DEBUG              LWIP_DBG_ON
515
#  define TCP_RTO_DEBUG             LWIP_DBG_ON
516
#  define TCP_CWND_DEBUG            LWIP_DBG_ON
517
#  define TCP_WND_DEBUG             LWIP_DBG_ON
518
#  define TCP_OUTPUT_DEBUG          LWIP_DBG_ON
519
#  define TCP_RST_DEBUG             LWIP_DBG_ON
520
#  define TCP_QLEN_DEBUG            LWIP_DBG_ON
521
# endif
522
# ifdef CYGDBG_LWIP_DEBUG_UDP
523
#  define UDP_DEBUG                 LWIP_DBG_ON
524
# endif
525
# ifdef CYGDBG_LWIP_DEBUG_TCPIP
526
#  define TCPIP_DEBUG               LWIP_DBG_ON
527
# endif
528
# ifdef CYGDBG_LWIP_DEBUG_PPP
529
#  define PPP_DEBUG                 LWIP_DBG_ON
530
# endif
531
# ifdef CYGDBG_LWIP_DEBUG_SLIP
532
#  define SLIP_DEBUG                LWIP_DBG_ON
533
# endif
534
# ifdef CYGDBG_LWIP_DEBUG_DHCP
535
#  define DHCP_DEBUG                LWIP_DBG_ON
536
# endif
537
# ifdef CYGDBG_LWIP_DEBUG_AUTOIP
538
#  define AUTOIP_DEBUG              LWIP_DBG_ON
539
# endif
540
# ifdef CYGDBG_LWIP_DEBUG_SNMP
541
#  define SNMP_MSG_DEBUG            LWIP_DBG_ON
542
#  define SNMP_MIB_DEBUG            LWIP_DBG_ON
543
# endif
544
# ifdef CYGDBG_LWIP_DEBUG_DNS
545
#  define DNS_DEBUG                 LWIP_DBG_ON
546
# endif
547
// Log level
548
# define LWIP_DBG_MIN_LEVEL         CYGDBG_LWIP_DEBUG_LEVEL
549
// Log types
550
# ifdef CYGDBG_LWIP_DEBUG_TRACE
551
#  define __LWIP_DBG_TRACE          LWIP_DBG_TRACE
552
# else
553
#  define __LWIP_DBG_TRACE          0
554
# endif
555
# ifdef CYGDBG_LWIP_DEBUG_STATE
556
#  define __LWIP_DBG_STATE          LWIP_DBG_STATE
557
# else
558
#  define __LWIP_DBG_STATE          0
559
# endif
560
# ifdef CYGDBG_LWIP_DEBUG_FRESH
561
#  define __LWIP_DBG_FRESH          LWIP_DBG_FRESH
562
# else
563
#  define __LWIP_DBG_FRESH          0
564
# endif
565
# define LWIP_DBG_TYPES_ON          (LWIP_DBG_ON | __LWIP_DBG_TRACE | \
566
                                     __LWIP_DBG_STATE | __LWIP_DBG_FRESH)
567
#endif
568
 
569
#endif // CYGONCE_LWIPOPTS_H

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.