123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- #ifndef __LWIPOPTS_H__
- #define __LWIPOPTS_H__
- #define SYS_LIGHTWEIGHT_PROT 0
- #define NO_SYS 1
- #define MEM_ALIGNMENT 4
- #define MEM_SIZE (5*1024)
- #define MEMP_NUM_PBUF 50
- #define MEMP_NUM_UDP_PCB 6
- #define MEMP_NUM_TCP_PCB 10
- #define MEMP_NUM_TCP_PCB_LISTEN 5
- #define MEMP_NUM_TCP_SEG 25
- #define MEMP_NUM_SYS_TIMEOUT 10
- #define PBUF_POOL_SIZE 15
- #define PBUF_POOL_BUFSIZE 1540
- #define LWIP_TCP 1
- #define TCP_TTL 255
- #define TCP_QUEUE_OOSEQ 0
- #define TCP_MSS (1500 - 40)
- #define TCP_SND_BUF (6*TCP_MSS)
- #define TCP_SND_QUEUELEN (4* TCP_SND_BUF/TCP_MSS)
- #define TCP_WND (1*TCP_MSS)
- #define LWIP_ICMP 1
- #define LWIP_DHCP 1
- #define LWIP_UDP 1
- #define UDP_TTL 255
- #define LWIP_STATS 1
- #define LWIP_PROVIDE_ERRNO 1
- #define CHECKSUM_BY_HARDWARE
- #ifdef CHECKSUM_BY_HARDWARE
-
- #define CHECKSUM_GEN_IP 0
-
- #define CHECKSUM_GEN_UDP 0
-
- #define CHECKSUM_GEN_TCP 0
-
- #define CHECKSUM_CHECK_IP 0
-
- #define CHECKSUM_CHECK_UDP 0
-
- #define CHECKSUM_CHECK_TCP 0
- #else
-
- #define CHECKSUM_GEN_IP 1
-
- #define CHECKSUM_GEN_UDP 1
-
- #define CHECKSUM_GEN_TCP 1
-
- #define CHECKSUM_CHECK_IP 1
-
- #define CHECKSUM_CHECK_UDP 1
-
- #define CHECKSUM_CHECK_TCP 1
- #endif
- #define LWIP_NETCONN 0
- #define LWIP_SOCKET 0
- #define NETIF_DEBUG LWIP_DBG_OFF
- #define TCP_DEBUG LWIP_DBG_ON
- #define ETHARP_DEBUG LWIP_DBG_OFF
- #define PBUF_DEBUG LWIP_DBG_OFF
- #define IP_DEBUG LWIP_DBG_OFF
- #define TCPIP_DEBUG LWIP_DBG_ON
- #define DHCP_DEBUG LWIP_DBG_ON
- #define UDP_DEBUG LWIP_DBG_OFF
- #define SOCKETS_DEBUG LWIP_DBG_ON
- #define MEMP_DEBUG LWIP_DBG_ON
- #define MEM_DEBUG LWIP_DBG_ON
- #define PING_DEBUG LWIP_DBG_OFF
- #define SNMP_MSG_DEBUG LWIP_DBG_OFF
- #define SNMP_MIB_DEBUG LWIP_DBG_OFF
- #define RAW_DEBUG LWIP_DBG_ON
- #endif
|