From 42efbb1a578212ca7507618496ff14f3576b1baa Mon Sep 17 00:00:00 2001 From: Mengsk Date: Wed, 30 Mar 2022 15:45:56 +0200 Subject: [PATCH] Add lwip dns debug option. --- components/lwip/Kconfig | 5 +++++ components/lwip/port/esp32/include/lwipopts.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 5b2e6398ce..949e8b6d30 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -1063,4 +1063,9 @@ menu "LWIP" depends on LWIP_DEBUG default n + config LWIP_DNS_DEBUG + bool "Enable DNS debug messages" + depends on LWIP_DEBUG + default n + endmenu diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index 89f7210645..9129520a45 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -1232,6 +1232,15 @@ #define SNTP_DEBUG LWIP_DBG_OFF #endif +/** + * DNS_DEBUG: Enable debugging for DNS. + */ +#ifdef CONFIG_LWIP_DNS_DEBUG +#define DNS_DEBUG LWIP_DBG_ON +#else +#define DNS_DEBUG LWIP_DBG_OFF +#endif + /** * MEMP_DEBUG: Enable debugging in memp.c. */