1 #ifndef __LWIPOPTS_H__ 2 #define __LWIPOPTS_H__ 3 4 #include <byteswap.h> 5 #include <netinet/in.h> 6 7 #define SYS_LIGHTWEIGHT_PROT 1 8 #define LWIP_NETIF_API 1 9 #define LWIP_DNS 1 10 #define LWIP_UDP 1 11 #define LWIP_TCP 1 12 #define LWIP_SO_RCVTIMEO 1 13 #define LWIP_ICMP 1 14 15 #define TCPIP_MBOX_SIZE 512 16 #define TCPIP_THREAD_PRIO -10 17 #define TCPIP_THREAD_STACKSIZE 32768 18 19 #define DEFAULT_UDP_RECVMBOX_SIZE 16 20 #define DEFAULT_TCP_RECVMBOX_SIZE 128 21 #define DEFAULT_ACCEPTMBOX_SIZE 4 22 23 #define LWIP_SOCKET 0 24 25 #define MEM_LIBC_MALLOC 0 26 #define MEMP_MEM_MALLOC 0 27 28 #define MEMP_NUM_TCP_PCB 64 29 #define MEMP_NUM_TCP_SEG 256 30 #define MEMP_NUM_REASSDATA 32 31 #define MEMP_NUM_SYS_TIMEOUT 8 32 #define MEMP_NUM_NETCONN 64 33 #define MEMP_NUM_TCPIP_MSG_API 64 34 #define MEMP_NUM_TCPIP_MSG_INPKT 64 35 #define MEMP_NUM_NETBUF 128 36 #define PBUF_POOL_SIZE 256 37 #define ARP_TABLE_SIZE 16 38 #define IP_REASS_MAX_PBUFS 64 39 #define IP_REASS_MAXAGE 10 40 41 #define LWIP_NETIF_API 1 42 43 #define LWIP_DNS 1 44 #define DNS_TABLE_SIZE 16 45 #define DNS_MAX_SERVERS 4 46 #define TCP_MSS 1460 47 #define TCP_WND 64000 48 #define TCP_SND_BUF (4*TCP_MSS) 49 #define LWIP_TCP_TIMESTAMPS 1 50 51 /* 52 * IANA says to use dynamic port numbers above 49152, but some 53 * very high numbers are known to be (ab)used, too. 54 */ 55 #define TCP_LOCAL_PORT_RANGE_START 49152 56 #define TCP_LOCAL_PORT_RANGE_END 57343 57 #define UDP_LOCAL_PORT_RANGE_START 49152 58 #define UDP_LOCAL_PORT_RANGE_END 57343 59 60 #define ETHARP_TRUST_IP_MAC 0 61 62 #define LWIP_STATS 1 63 #define LWIP_STATS_DISPLAY 1 64 65 #define LWIP_PLATFORM_BYTESWAP 1 66 #define LWIP_PLATFORM_HTONS(x) bswap_16(x) 67 #define LWIP_PLATFORM_HTONL(x) bswap_32(x) 68 69 #define LWIP_PREFIX_BYTEORDER_FUNCS 0 70 #define LWIP_COMPAT_MUTEX 1 71 72 void undiarp_tmr(void); 73 #endif /* __LWIPOPTS_H__ */ 74