summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorliang yongxiang <[email protected]>2018-07-18 11:57:33 +0800
committerliang yongxiang <[email protected]>2018-07-18 14:57:00 +0800
commit9868dffc2fb2585379913e8af5bbbda229b7255d (patch)
tree030c2b17be2aebee90bf1ce385e7518ac54f894a /components/net
parent4ca1d03bdffef9e79456df3e696b7efb7f5b79aa (diff)
[lwIP] add all lwIP Debugging Options
Diffstat (limited to 'components/net')
-rw-r--r--components/net/Kconfig123
-rw-r--r--components/net/lwip-1.3.2/src/lwipopts.h142
-rw-r--r--components/net/lwip-1.4.1/src/lwipopts.h140
-rw-r--r--components/net/lwip-2.0.2/src/lwipopts.h140
4 files changed, 543 insertions, 2 deletions
diff --git a/components/net/Kconfig b/components/net/Kconfig
index 620d831c03..1b5c96af65 100644
--- a/components/net/Kconfig
+++ b/components/net/Kconfig
@@ -197,6 +197,127 @@ config RT_USING_LWIP
int
default 1 if RT_LWIP_NETIF_LOOPBACK
default 0 if !RT_LWIP_NETIF_LOOPBACK
+
+ menuconfig RT_LWIP_DEBUG
+ bool "Enable lwIP Debugging Options"
+ default n
+
+ if RT_LWIP_DEBUG
+
+ config RT_LWIP_SYS_DEBUG
+ bool "Enable Debugging of sys.c"
+ default n
+
+ config RT_LWIP_ETHARP_DEBUG
+ bool "Enable Debugging of etharp.c"
+ default n
+
+ config RT_LWIP_PPP_DEBUG
+ bool "Enable Debugging of PPP"
+ default n
+
+ config RT_LWIP_MEM_DEBUG
+ bool "Enable Debugging of mem.c"
+ default n
+
+ config RT_LWIP_MEMP_DEBUG
+ bool "Enable Debugging of memp.c"
+ default n
+
+ config RT_LWIP_PBUF_DEBUG
+ bool "Enable Debugging of pbuf.c"
+ default n
+
+ config RT_LWIP_API_LIB_DEBUG
+ bool "Enable Debugging of api_lib.c"
+ default n
+
+ config RT_LWIP_API_MSG_DEBUG
+ bool "Enable Debugging of api_msg.c"
+ default n
+
+ config RT_LWIP_TCPIP_DEBUG
+ bool "Enable Debugging of tcpip.c"
+ default n
+
+ config RT_LWIP_NETIF_DEBUG
+ bool "Enable Debugging of netif.c"
+ default n
+
+ config RT_LWIP_SOCKETS_DEBUG
+ bool "Enable Debugging of sockets.c"
+ default n
+
+ config RT_LWIP_DNS_DEBUG
+ bool "Enable Debugging of DNS"
+ default n
+
+ config RT_LWIP_AUTOIP_DEBUG
+ bool "Enable Debugging of autoip.c"
+ default n
+
+ config RT_LWIP_DHCP_DEBUG
+ bool "Enable Debugging of dhcp.c"
+ default n
+
+ config RT_LWIP_IP_DEBUG
+ bool "Enable Debugging of IP"
+ default n
+
+ config RT_LWIP_IP_REASS_DEBUG
+ bool "Enable debugging in ip_frag.c for both frag & reass"
+ default n
+
+ config RT_LWIP_ICMP_DEBUG
+ bool "Enable Debugging of icmp.c"
+ default n
+
+ config RT_LWIP_IGMP_DEBUG
+ bool "Enable Debugging of igmp.c"
+ default n
+
+ config RT_LWIP_UDP_DEBUG
+ bool "Enable Debugging of UDP"
+ default n
+
+ config RT_LWIP_TCP_DEBUG
+ bool "Enable Debugging of TCP"
+ default n
+
+ config RT_LWIP_TCP_INPUT_DEBUG
+ bool "Enable Debugging of tcp_in.c"
+ default n
+
+ config RT_LWIP_TCP_OUTPUT_DEBUG
+ bool "Enable Debugging of tcp_out.c"
+ default n
+
+ config RT_LWIP_TCP_RTO_DEBUG
+ bool "Enable debugging in TCP for retransmit"
+ default n
+
+ config RT_LWIP_TCP_CWND_DEBUG
+ bool "Enable debugging for TCP congestion window"
+ default n
+
+ config RT_LWIP_TCP_WND_DEBUG
+ bool "Enable debugging in tcp_in.c for window updating"
+ default n
+
+ config RT_LWIP_TCP_FR_DEBUG
+ bool "Enable debugging in tcp_in.c for fast retransmit"
+ default n
+
+ config RT_LWIP_TCP_QLEN_DEBUG
+ bool "Enable debugging for TCP queue lengths"
+ default n
+
+ config RT_LWIP_TCP_RST_DEBUG
+ bool "Enable debugging for TCP with the RST message"
+ default n
+
+ endif
+
endif
endmenu
@@ -227,7 +348,7 @@ config LWIP_USING_DHCPD
default 1.1.1.1
endif
endif
-
+
endif
diff --git a/components/net/lwip-1.3.2/src/lwipopts.h b/components/net/lwip-1.3.2/src/lwipopts.h
index 0c5b49c770..f875e4945e 100644
--- a/components/net/lwip-1.3.2/src/lwipopts.h
+++ b/components/net/lwip-1.3.2/src/lwipopts.h
@@ -55,36 +55,176 @@
/* ---------- Debug options ---------- */
#ifdef LWIP_DEBUG
+#ifdef RT_LWIP_SYS_DEBUG
+#define SYS_DEBUG LWIP_DBG_ON
+#else
#define SYS_DEBUG LWIP_DBG_OFF
-#define ETHARP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_ETHARP_DEBUG
+#define ETHARP_DEBUG LWIP_DBG_ON
+#else
+#define ETHARP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_PPP_DEBUG
+#define PPP_DEBUG LWIP_DBG_ON
+#else
#define PPP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_MEM_DEBUG
+#define MEM_DEBUG LWIP_DBG_ON
+#else
#define MEM_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_MEMP_DEBUG
+#define MEMP_DEBUG LWIP_DBG_ON
+#else
#define MEMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_PBUF_DEBUG
+#define PBUF_DEBUG LWIP_DBG_ON
+#else
#define PBUF_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_API_LIB_DEBUG
+#define API_LIB_DEBUG LWIP_DBG_ON
+#else
#define API_LIB_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_API_MSG_DEBUG
+#define API_MSG_DEBUG LWIP_DBG_ON
+#else
#define API_MSG_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCPIP_DEBUG
+#define TCPIP_DEBUG LWIP_DBG_ON
+#else
#define TCPIP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_NETIF_DEBUG
+#define NETIF_DEBUG LWIP_DBG_ON
+#else
#define NETIF_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_SOCKETS_DEBUG
+#define SOCKETS_DEBUG LWIP_DBG_ON
+#else
#define SOCKETS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_DNS_DEBUG
+#define DNS_DEBUG LWIP_DBG_ON
+#else
#define DNS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_AUTOIP_DEBUG
+#define AUTOIP_DEBUG LWIP_DBG_ON
+#else
#define AUTOIP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_DHCP_DEBUG
+#define DHCP_DEBUG LWIP_DBG_ON
+#else
#define DHCP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IP_DEBUG
+#define IP_DEBUG LWIP_DBG_ON
+#else
#define IP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IP_REASS_DEBUG
+#define IP_REASS_DEBUG LWIP_DBG_ON
+#else
#define IP_REASS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_ICMP_DEBUG
+#define ICMP_DEBUG LWIP_DBG_ON
+#else
#define ICMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IGMP_DEBUG
+#define IGMP_DEBUG LWIP_DBG_ON
+#else
#define IGMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_UDP_DEBUG
+#define UDP_DEBUG LWIP_DBG_ON
+#else
#define UDP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_DEBUG
+#define TCP_DEBUG LWIP_DBG_ON
+#else
#define TCP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_INPUT_DEBUG
+#define TCP_INPUT_DEBUG LWIP_DBG_ON
+#else
#define TCP_INPUT_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_OUTPUT_DEBUG
+#define TCP_OUTPUT_DEBUG LWIP_DBG_ON
+#else
#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_RTO_DEBUG
+#define TCP_RTO_DEBUG LWIP_DBG_ON
+#else
#define TCP_RTO_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_CWND_DEBUG
+#define TCP_CWND_DEBUG LWIP_DBG_ON
+#else
#define TCP_CWND_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_WND_DEBUG
+#define TCP_WND_DEBUG LWIP_DBG_ON
+#else
#define TCP_WND_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_FR_DEBUG
+#define TCP_FR_DEBUG LWIP_DBG_ON
+#else
#define TCP_FR_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_QLEN_DEBUG
+#define TCP_QLEN_DEBUG LWIP_DBG_ON
+#else
#define TCP_QLEN_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_RST_DEBUG
+#define TCP_RST_DEBUG LWIP_DBG_ON
+#else
#define TCP_RST_DEBUG LWIP_DBG_OFF
#endif
+#endif /* LWIP_DEBUG */
+
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
/* ---------- Memory options ---------- */
diff --git a/components/net/lwip-1.4.1/src/lwipopts.h b/components/net/lwip-1.4.1/src/lwipopts.h
index f07e9d51f5..36babb36b9 100644
--- a/components/net/lwip-1.4.1/src/lwipopts.h
+++ b/components/net/lwip-1.4.1/src/lwipopts.h
@@ -49,36 +49,176 @@
/* ---------- Debug options ---------- */
#ifdef LWIP_DEBUG
+#ifdef RT_LWIP_SYS_DEBUG
+#define SYS_DEBUG LWIP_DBG_ON
+#else
#define SYS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_ETHARP_DEBUG
+#define ETHARP_DEBUG LWIP_DBG_ON
+#else
#define ETHARP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_PPP_DEBUG
+#define PPP_DEBUG LWIP_DBG_ON
+#else
#define PPP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_MEM_DEBUG
+#define MEM_DEBUG LWIP_DBG_ON
+#else
#define MEM_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_MEMP_DEBUG
+#define MEMP_DEBUG LWIP_DBG_ON
+#else
#define MEMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_PBUF_DEBUG
+#define PBUF_DEBUG LWIP_DBG_ON
+#else
#define PBUF_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_API_LIB_DEBUG
+#define API_LIB_DEBUG LWIP_DBG_ON
+#else
#define API_LIB_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_API_MSG_DEBUG
+#define API_MSG_DEBUG LWIP_DBG_ON
+#else
#define API_MSG_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCPIP_DEBUG
+#define TCPIP_DEBUG LWIP_DBG_ON
+#else
#define TCPIP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_NETIF_DEBUG
+#define NETIF_DEBUG LWIP_DBG_ON
+#else
#define NETIF_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_SOCKETS_DEBUG
+#define SOCKETS_DEBUG LWIP_DBG_ON
+#else
#define SOCKETS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_DNS_DEBUG
+#define DNS_DEBUG LWIP_DBG_ON
+#else
#define DNS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_AUTOIP_DEBUG
+#define AUTOIP_DEBUG LWIP_DBG_ON
+#else
#define AUTOIP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_DHCP_DEBUG
+#define DHCP_DEBUG LWIP_DBG_ON
+#else
#define DHCP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IP_DEBUG
+#define IP_DEBUG LWIP_DBG_ON
+#else
#define IP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IP_REASS_DEBUG
+#define IP_REASS_DEBUG LWIP_DBG_ON
+#else
#define IP_REASS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_ICMP_DEBUG
+#define ICMP_DEBUG LWIP_DBG_ON
+#else
#define ICMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IGMP_DEBUG
+#define IGMP_DEBUG LWIP_DBG_ON
+#else
#define IGMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_UDP_DEBUG
+#define UDP_DEBUG LWIP_DBG_ON
+#else
#define UDP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_DEBUG
+#define TCP_DEBUG LWIP_DBG_ON
+#else
#define TCP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_INPUT_DEBUG
+#define TCP_INPUT_DEBUG LWIP_DBG_ON
+#else
#define TCP_INPUT_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_OUTPUT_DEBUG
+#define TCP_OUTPUT_DEBUG LWIP_DBG_ON
+#else
#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_RTO_DEBUG
+#define TCP_RTO_DEBUG LWIP_DBG_ON
+#else
#define TCP_RTO_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_CWND_DEBUG
+#define TCP_CWND_DEBUG LWIP_DBG_ON
+#else
#define TCP_CWND_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_WND_DEBUG
+#define TCP_WND_DEBUG LWIP_DBG_ON
+#else
#define TCP_WND_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_FR_DEBUG
+#define TCP_FR_DEBUG LWIP_DBG_ON
+#else
#define TCP_FR_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_QLEN_DEBUG
+#define TCP_QLEN_DEBUG LWIP_DBG_ON
+#else
#define TCP_QLEN_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_RST_DEBUG
+#define TCP_RST_DEBUG LWIP_DBG_ON
+#else
#define TCP_RST_DEBUG LWIP_DBG_OFF
#endif
+#endif /* LWIP_DEBUG */
+
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
/* ---------- Memory options ---------- */
diff --git a/components/net/lwip-2.0.2/src/lwipopts.h b/components/net/lwip-2.0.2/src/lwipopts.h
index 988b9668db..6c48a263a0 100644
--- a/components/net/lwip-2.0.2/src/lwipopts.h
+++ b/components/net/lwip-2.0.2/src/lwipopts.h
@@ -57,36 +57,176 @@
/* ---------- Debug options ---------- */
#ifdef LWIP_DEBUG
+#ifdef RT_LWIP_SYS_DEBUG
+#define SYS_DEBUG LWIP_DBG_ON
+#else
#define SYS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_ETHARP_DEBUG
+#define ETHARP_DEBUG LWIP_DBG_ON
+#else
#define ETHARP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_PPP_DEBUG
+#define PPP_DEBUG LWIP_DBG_ON
+#else
#define PPP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_MEM_DEBUG
+#define MEM_DEBUG LWIP_DBG_ON
+#else
#define MEM_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_MEMP_DEBUG
+#define MEMP_DEBUG LWIP_DBG_ON
+#else
#define MEMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_PBUF_DEBUG
+#define PBUF_DEBUG LWIP_DBG_ON
+#else
#define PBUF_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_API_LIB_DEBUG
+#define API_LIB_DEBUG LWIP_DBG_ON
+#else
#define API_LIB_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_API_MSG_DEBUG
+#define API_MSG_DEBUG LWIP_DBG_ON
+#else
#define API_MSG_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCPIP_DEBUG
+#define TCPIP_DEBUG LWIP_DBG_ON
+#else
#define TCPIP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_NETIF_DEBUG
+#define NETIF_DEBUG LWIP_DBG_ON
+#else
#define NETIF_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_SOCKETS_DEBUG
+#define SOCKETS_DEBUG LWIP_DBG_ON
+#else
#define SOCKETS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_DNS_DEBUG
+#define DNS_DEBUG LWIP_DBG_ON
+#else
#define DNS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_AUTOIP_DEBUG
+#define AUTOIP_DEBUG LWIP_DBG_ON
+#else
#define AUTOIP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_DHCP_DEBUG
+#define DHCP_DEBUG LWIP_DBG_ON
+#else
#define DHCP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IP_DEBUG
+#define IP_DEBUG LWIP_DBG_ON
+#else
#define IP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IP_REASS_DEBUG
+#define IP_REASS_DEBUG LWIP_DBG_ON
+#else
#define IP_REASS_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_ICMP_DEBUG
+#define ICMP_DEBUG LWIP_DBG_ON
+#else
#define ICMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_IGMP_DEBUG
+#define IGMP_DEBUG LWIP_DBG_ON
+#else
#define IGMP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_UDP_DEBUG
+#define UDP_DEBUG LWIP_DBG_ON
+#else
#define UDP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_DEBUG
+#define TCP_DEBUG LWIP_DBG_ON
+#else
#define TCP_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_INPUT_DEBUG
+#define TCP_INPUT_DEBUG LWIP_DBG_ON
+#else
#define TCP_INPUT_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_OUTPUT_DEBUG
+#define TCP_OUTPUT_DEBUG LWIP_DBG_ON
+#else
#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_RTO_DEBUG
+#define TCP_RTO_DEBUG LWIP_DBG_ON
+#else
#define TCP_RTO_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_CWND_DEBUG
+#define TCP_CWND_DEBUG LWIP_DBG_ON
+#else
#define TCP_CWND_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_WND_DEBUG
+#define TCP_WND_DEBUG LWIP_DBG_ON
+#else
#define TCP_WND_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_FR_DEBUG
+#define TCP_FR_DEBUG LWIP_DBG_ON
+#else
#define TCP_FR_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_QLEN_DEBUG
+#define TCP_QLEN_DEBUG LWIP_DBG_ON
+#else
#define TCP_QLEN_DEBUG LWIP_DBG_OFF
+#endif
+
+#ifdef RT_LWIP_TCP_RST_DEBUG
+#define TCP_RST_DEBUG LWIP_DBG_ON
+#else
#define TCP_RST_DEBUG LWIP_DBG_OFF
#endif
+#endif /* LWIP_DEBUG */
+
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
/* ---------- Memory options ---------- */