mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
lw-ip: Fix LWIP_DEBUG define which is always defined
This commit is contained in:
@ -848,55 +848,68 @@ menu "LWIP"
|
|||||||
|
|
||||||
endmenu # Hooks
|
endmenu # Hooks
|
||||||
|
|
||||||
menu "Debug"
|
menuconfig LWIP_DEBUG
|
||||||
|
bool "Enable LWIP Debug"
|
||||||
|
default n
|
||||||
|
|
||||||
config LWIP_NETIF_DEBUG
|
config LWIP_NETIF_DEBUG
|
||||||
bool "Enable netif debug messages"
|
bool "Enable netif debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_PBUF_DEBUG
|
config LWIP_PBUF_DEBUG
|
||||||
bool "Enable pbuf debug messages"
|
bool "Enable pbuf debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_ETHARP_DEBUG
|
config LWIP_ETHARP_DEBUG
|
||||||
bool "Enable etharp debug messages"
|
bool "Enable etharp debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_API_LIB_DEBUG
|
config LWIP_API_LIB_DEBUG
|
||||||
bool "Enable api lib debug messages"
|
bool "Enable api lib debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_SOCKETS_DEBUG
|
config LWIP_SOCKETS_DEBUG
|
||||||
bool "Enable socket debug messages"
|
bool "Enable socket debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_IP_DEBUG
|
config LWIP_IP_DEBUG
|
||||||
bool "Enable IP debug messages"
|
bool "Enable IP debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_ICMP_DEBUG
|
config LWIP_ICMP_DEBUG
|
||||||
bool "Enable ICMP debug messages"
|
bool "Enable ICMP debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_DHCP_STATE_DEBUG
|
config LWIP_DHCP_STATE_DEBUG
|
||||||
bool "Enable DHCP state tracking"
|
bool "Enable DHCP state tracking"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_DHCP_DEBUG
|
config LWIP_DHCP_DEBUG
|
||||||
bool "Enable DHCP debug messages"
|
bool "Enable DHCP debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_IP6_DEBUG
|
config LWIP_IP6_DEBUG
|
||||||
bool "Enable IP6 debug messages"
|
bool "Enable IP6 debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_ICMP6_DEBUG
|
config LWIP_ICMP6_DEBUG
|
||||||
bool "Enable ICMP6 debug messages"
|
bool "Enable ICMP6 debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config LWIP_TCP_DEBUG
|
config LWIP_TCP_DEBUG
|
||||||
bool "Enable TCP debug messages"
|
bool "Enable TCP debug messages"
|
||||||
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
endmenu #debug
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -991,7 +991,11 @@
|
|||||||
/**
|
/**
|
||||||
* LWIP_DEBUG: Enable lwip debugging in other modules.
|
* LWIP_DEBUG: Enable lwip debugging in other modules.
|
||||||
*/
|
*/
|
||||||
#define LWIP_DEBUG LWIP_DBG_OFF
|
#ifdef CONFIG_LWIP_DEBUG
|
||||||
|
#define LWIP_DEBUG LWIP_DBG_ON
|
||||||
|
#else
|
||||||
|
#undef LWIP_DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CHECKSUM_CHECK_UDP CONFIG_LWIP_CHECKSUM_CHECK_UDP
|
#define CHECKSUM_CHECK_UDP CONFIG_LWIP_CHECKSUM_CHECK_UDP
|
||||||
#define CHECKSUM_CHECK_IP CONFIG_LWIP_CHECKSUM_CHECK_IP
|
#define CHECKSUM_CHECK_IP CONFIG_LWIP_CHECKSUM_CHECK_IP
|
||||||
|
Reference in New Issue
Block a user