📄 lwipopts.h
字号:
//#define RAW_TTL 255
/*********************************************************************************************************
**-------------------------------DHCP参数配置:DHCP options----------------------------
*********************************************************************************************************/
#define LWIP_DHCP 0 // default is 0
//#define DHCP_DOES_ARP_CHECK 1
#define DHCP_HOST_NAME "fury-dev"
/*********************************************************************************************************
**-------------------------------UDP参数配置:UDP options----------------------------
*********************************************************************************************************/
#define LWIP_UDP 1
#define UDP_TTL 128
/*********************************************************************************************************
**-------------------------------TCP参数配置:TCP options----------------------------
*********************************************************************************************************/
#define LWIP_TCP 1
#define TCP_TTL 255
#define TCP_WND 4096 // default is 2048
#define TCP_MAXRTX 12
#define TCP_SYNMAXRTX 6
#define TCP_QUEUE_OOSEQ 1
#define TCP_MSS 1500 // default is 128
#define TCP_SND_BUF (6*TCP_MSS)
// default is 256
//#define TCP_SND_QUEUELEN (4 * TCP_SND_BUF/TCP_MSS)
//#define TCP_SNDLOWAT (TCP_SND_BUF/2)
//#define LWIP_HAVE_LOOPIF 0
/*********************************************************************************************************
**-------------------------------任务参数配置:Task options----------------------------
*********************************************************************************************************/
#define TCPIP_THREAD_PRIO 1
//#define SLIPIF_THREAD_PRIO 1
//#define PPP_THREAD_PRIO 1
//#define DEFAULT_THREAD_PRIO 1
/*********************************************************************************************************
**-------------------------------Sequential layer options----------------------------
*********************************************************************************************************/
#define LWIP_NETCONN 0
/*********************************************************************************************************
**-------------------------------Socket参数配置:Socket options----------------------------
*********************************************************************************************************/
#define LWIP_SOCKET 0
#define LWIP_COMPAT_SOCKETS 0
/*********************************************************************************************************
**-------------------------------Statistics options----------------------------
*********************************************************************************************************/
//#define LWIP_STATS 1
//#define LWIP_STATS_DISPLAY 0
//#define LINK_STATS 1
//#define IP_STATS 1
//#define IPFRAG_STATS 1
//#define ICMP_STATS 1
//#define UDP_STATS 1
//#define TCP_STATS 1
//#define MEM_STATS 1
//#define MEMP_STATS 1
//#define PBUF_STATS 1
//#define SYS_STATS 1
//#define RAW_STATS 0
/*********************************************************************************************************
**-------------------------------PPP options----------------------------
*********************************************************************************************************/
//#define PPP_SUPPORT 0
//#define PAP_SUPPORT 0
//#define CHAP_SUPPORT 0
//#define VJ_SUPPORT 0
//#define MD5_SUPPORT 0
/*********************************************************************************************************
**-------------------------------checksum options----------------------------
*********************************************************************************************************/
//#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
/*********************************************************************************************************
**-------------------------------调试参数配置:Debugging options----------------------------
*********************************************************************************************************/
//#define DBG_TYPES_ON 0
//#define ETHARP_DEBUG DBG_OFF
//#define NETIF_DEBUG DBG_OFF
//#define PBUF_DEBUG DBG_OFF
//#define API_LIB_DEBUG DBG_OFF
//#define API_MSG_DEBUG DBG_OFF
//#define SOCKETS_DEBUG DBG_OFF
//#define ICMP_DEBUG DBG_OFF
//#define INET_DEBUG DBG_OFF
//#define IP_DEBUG DBG_OFF
//#define IP_REASS_DEBUG DBG_OFF
//#define RAW_DEBUG DBG_OFF
//#define MEM_DEBUG DBG_OFF
//#define MEMP_DEBUG DBG_OFF
//#define SYS_DEBUG DBG_OFF
//#define TCP_DEBUG DBG_OFF
//#define TCP_INPUT_DEBUG DBG_OFF
//#define TCP_FR_DEBUG DBG_OFF
//#define TCP_RTO_DEBUG DBG_OFF
//#define TCP_REXMIT_DEBUG DBG_OFF
//#define TCP_CWND_DEBUG DBG_OFF
//#define TCP_WND_DEBUG DBG_OFF
//#define TCP_OUTPUT_DEBUG DBG_OFF
//#define TCP_RST_DEBUG DBG_OFF
//#define TCP_QLEN_DEBUG DBG_OFF
//#define UDP_DEBUG DBG_OFF
//#define TCPIP_DEBUG DBG_OFF
//#define PPP_DEBUG DBG_OFF
//#define SLIP_DEBUG DBG_OFF
//#define DHCP_DEBUG DBG_OFF
//#define DBG_MIN_LEVEL DBG_LEVEL_OFF
#endif /* __LWIPOPTS_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -