Merge branch 'components/lwip/napt_debug_enable' into 'master'

components/lwip: Add menuconfig option to enable NAPT debugging.

See merge request espressif/esp-idf!21260
This commit is contained in:
Abhik Roy
2022-12-14 15:27:48 +08:00
3 changed files with 15 additions and 2 deletions

View File

@@ -1338,6 +1338,15 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
#define DNS_DEBUG LWIP_DBG_OFF
#endif
/**
* NAPT_DEBUG: Enable debugging for NAPT.
*/
#ifdef CONFIG_LWIP_NAPT_DEBUG
#define NAPT_DEBUG LWIP_DBG_ON
#else
#define NAPT_DEBUG LWIP_DBG_OFF
#endif
/**
* MEMP_DEBUG: Enable debugging in memp.c.
*/