31 |
*/ |
*/ |
32 |
#ifndef __LWIPOPTS_H__ |
#ifndef __LWIPOPTS_H__ |
33 |
#define __LWIPOPTS_H__ |
#define __LWIPOPTS_H__ |
|
|
|
34 |
/* ---------- Memory options ---------- */ |
/* ---------- Memory options ---------- */ |
35 |
/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which |
/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which |
36 |
lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 |
lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 |
61 |
timeouts. */ |
timeouts. */ |
62 |
#define MEMP_NUM_SYS_TIMEOUT 3 |
#define MEMP_NUM_SYS_TIMEOUT 3 |
63 |
|
|
|
|
|
64 |
/* The following four are used only with the sequential API and can be |
/* The following four are used only with the sequential API and can be |
65 |
set to 0 if the application only will use the raw API. */ |
set to 0 if the application only will use the raw API. */ |
66 |
/* MEMP_NUM_NETBUF: the number of struct netbufs. */ |
/* MEMP_NUM_NETBUF: the number of struct netbufs. */ |
83 |
|
|
84 |
/* ---------- Pbuf options ---------- */ |
/* ---------- Pbuf options ---------- */ |
85 |
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ |
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ |
86 |
#define PBUF_POOL_SIZE 6 |
#define PBUF_POOL_SIZE 100 |
87 |
|
|
88 |
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ |
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ |
89 |
#define PBUF_POOL_BUFSIZE 128 |
#define PBUF_POOL_BUFSIZE 128 |
134 |
defined to 0, all packets with IP options are dropped. */ |
defined to 0, all packets with IP options are dropped. */ |
135 |
#define IP_OPTIONS 1 |
#define IP_OPTIONS 1 |
136 |
|
|
137 |
|
/* IP reassembly and segmentation.These are orthogonal even |
138 |
|
* if they both deal with IP fragments */ |
139 |
|
#define IP_REASSEMBLY 1 |
140 |
|
#define IP_FRAG 1 |
141 |
|
|
142 |
/* ---------- ICMP options ---------- */ |
/* ---------- ICMP options ---------- */ |
143 |
#define ICMP_TTL 255 |
#define ICMP_TTL 255 |
144 |
|
|
|
|
|
145 |
/* ---------- DHCP options ---------- */ |
/* ---------- DHCP options ---------- */ |
146 |
/* Define LWIP_DHCP to 1 if you want DHCP configuration of |
/* Define LWIP_DHCP to 1 if you want DHCP configuration of |
147 |
interfaces. DHCP is not implemented in lwIP 0.5.1, however, so |
interfaces. DHCP is not implemented in lwIP 0.5.1, however, so |