123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- #ifndef __LWIPOPTS_H__
- #define __LWIPOPTS_H__
- #define SYS_LIGHTWEIGHT_PROT 1
- #define ETHARP_TRUST_IP_MAC 0
- #define IP_REASSEMBLY 0
- #define IP_FRAG 0
- #define ARP_QUEUEING 0
- #define NO_SYS 0
- #define MEM_ALIGNMENT 4
- #define MEM_SIZE (10*1024)
- #define MEMP_NUM_PBUF 50
- #define MEMP_NUM_UDP_PCB 6
- #define MEMP_NUM_TCP_PCB 12
- #define MEMP_NUM_TCP_PCB_LISTEN 5
- #define MEMP_NUM_TCP_SEG 25
- #define MEMP_NUM_SYS_TIMEOUT 10
- #define MEMP_NUM_NETCONN 10
- #define PBUF_POOL_SIZE 25
- #define PBUF_POOL_BUFSIZE 1540
- #define MEMP_NUM_NETBUF 7
- #define TCP_LISTEN_BACKLOG 1
- #define LWIP_TCP 1
- #define TCP_TTL 255
- #define TCP_QUEUE_OOSEQ 0
- #define TCP_MSS 1400
- #define TCP_SND_BUF (18*TCP_MSS)
- #define TCP_SND_QUEUELEN (4* TCP_SND_BUF/TCP_MSS)
- #define TCP_WND (4*TCP_MSS)
- #define TCP_MAXRTX 6
- #define LWIP_ICMP 1
- #define LWIP_DHCP 1
- #define LWIP_SNMP 0
- #define SNMP_LWIP_MIB2 0
- #define MIB2_STATS 0
- #define SNMP_USE_RAW 0
- #define SNMP_USE_NETCONN 1
-
- #define LWIP_UDP 1
- #define UDP_TTL 255
- #define LWIP_SO_RCVTIMEO 1
- #define LWIP_SO_SNDTIMEO 1
- #define LWIP_STATS 1
- #define LWIP_STATS_DISPLAY 1
- #define LWIP_PROVIDE_ERRNO 1
- #define LWIP_NETIF_LINK_CALLBACK 0
- #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
-
- #define CHECKSUM_GEN_ICMP 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
-
- #define CHECKSUM_GEN_ICMP 1
- #endif
- #define LWIP_RAW 1
- #define LWIP_NETCONN 1
- #define LWIP_SOCKET 1
- #define LWIP_DNS 1
- #define SO_REUSE 1
-
-
- #define SNTP_MAX_SERVERS 2
- #define SNTP_SERVER_DNS 1
- #define SNTP_UPDATE_DELAY 86400000
- #define SNTP_SET_SYSTEM_TIME(t) lwip_time_sinhro(t)
- #define SNTP_STARTUP_DELAY 1
- #define SNTP_STARTUP_DELAY_FUNC 10000
- #define PPP_SUPPORT 0
- #define PPPOS_SUPPORT 0
- #define PPP_INPROC_IRQ_SAFE 0
- #define PRINTPKT_SUPPORT 0
- #define PPP_IPV4_SUPPORT 0
-
- #define PAP_SUPPORT 1
- #define CHAP_SUPPORT 0
- #define MSCHAP_SUPPORT 0
- #define EAP_SUPPORT 0
- #define CCP_SUPPORT 0
- #define MPPE_SUPPORT 0
- #define MQTT_OUTPUT_RINGBUF_SIZE 512
- #define MQTT_VAR_HEADER_BUFFER_LEN 512
- #define LWIP_DEBUG
- #define TCP_DEBUG LWIP_DBG_OFF
- #define TCP_RTO_DEBUG LWIP_DBG_OFF
- #define TCP_CWND_DEBUG LWIP_DBG_OFF
- #define ETHARP_DEBUG LWIP_DBG_OFF
- #define PBUF_DEBUG LWIP_DBG_OFF
- #define IP_DEBUG LWIP_DBG_OFF
- #define TCPIP_DEBUG LWIP_DBG_OFF
- #define DHCP_DEBUG LWIP_DBG_OFF
- #define UDP_DEBUG LWIP_DBG_OFF
- #define SOCKETS_DEBUG LWIP_DBG_OFF
- #define MEMP_DEBUG LWIP_DBG_OFF
- #define PING_DEBUG LWIP_DBG_OFF
- #define SNMP_DEBUG LWIP_DBG_OFF
- #define SNMP_MIB_DEBUG LWIP_DBG_OFF
- #define TIMERS_DEBUG LWIP_DBG_OFF
- #define ICMP_DEBUG LWIP_DBG_OFF
- #define NETIF_DEBUG LWIP_DBG_OFF
- #define PPP_DEBUG LWIP_DBG_OFF
- #define SNTP_DEBUG LWIP_DBG_OFF
- #define MQTT_DEBUG LWIP_DBG_OFF
- #define TCPIP_THREAD_STACKSIZE 800
- #define TCPIP_MBOX_SIZE 150
- #define DEFAULT_UDP_RECVMBOX_SIZE 20
- #define DEFAULT_TCP_RECVMBOX_SIZE 70
- #define DEFAULT_RAW_RECVMBOX_SIZE 10
- #define DEFAULT_ACCEPTMBOX_SIZE 20
- #define DEFAULT_THREAD_STACKSIZE 500
- #define TCPIP_THREAD_PRIO (configMAX_PRIORITIES - 2)
- #define MEMP_NUM_TCPIP_MSG_INPKT 40
- #define LWIP_DISABLE_TCP_SANITY_CHECKS 1
- #endif
|