]>
Commit | Line | Data |
---|---|---|
1 | #ifndef LWIPOPTS_H | |
2 | #define LWIPOPTS_H | |
3 | ||
4 | #define NO_SYS 1 | |
5 | ||
6 | ||
7 | #define LWIP_SOCKET 0 | |
8 | #define LWIP_NETCONN 0 | |
9 | ||
10 | #define LWIP_SNMP 0 | |
11 | ||
12 | #define LWIP_DHCP 1 | |
13 | ||
14 | /* For big ones... */ | |
15 | extern void _memcpy(void *dest, const void *src, int bytes); | |
16 | #define MEMCPY(dst,src,len) _memcpy(dst,src,len) | |
17 | ||
18 | /* Lots of tricks from http://lists.gnu.org/archive/html/lwip-users/2006-11/msg00007.html */ | |
19 | ||
20 | #define MEM_SIZE (128*1024) | |
21 | #define TCP_MSS 1460 | |
22 | #define TCP_WND 24000 | |
23 | #define TCP_SND_BUF (16 * TCP_MSS) | |
24 | #define TCP_SND_QUEUELEN 16 | |
25 | ||
26 | #define MEMP_NUM_PBUF 256 | |
27 | #define PBUF_POOL_SIZE 128 | |
28 | #define PBUF_POOL_BUFSIZE 512 | |
29 | ||
30 | #define LWIP_STATS 1 | |
31 | #define LWIP_STATS_DISPLAY 1 | |
32 | #define U16_F "d" | |
33 | #define U32_F "d" | |
34 | ||
35 | #endif |