mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
components/lwip: Add menuconfig option to enable NAPT debugging,
removed L2_TO_L3_COPY in LWIP Kconfig, Also added DHCP server start log.
This commit is contained in:
parent
8574ec3bd3
commit
c92f5faa70
@ -944,7 +944,7 @@ static esp_err_t esp_netif_start_api(esp_netif_api_msg_t *msg)
|
|||||||
return ESP_ERR_ESP_NETIF_DHCPS_START_FAILED;
|
return ESP_ERR_ESP_NETIF_DHCPS_START_FAILED;
|
||||||
}
|
}
|
||||||
esp_netif->dhcps_status = ESP_NETIF_DHCP_STARTED;
|
esp_netif->dhcps_status = ESP_NETIF_DHCP_STARTED;
|
||||||
ESP_LOGD(TAG, "DHCP server started successfully");
|
ESP_LOGI(TAG, "DHCP server started on interface %s with IP: " IPSTR, esp_netif->if_key, IP2STR(&lwip_ip));
|
||||||
esp_netif_update_default_netif(esp_netif, ESP_NETIF_STARTED);
|
esp_netif_update_default_netif(esp_netif, ESP_NETIF_STARTED);
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
} else {
|
} else {
|
||||||
|
@ -172,7 +172,6 @@ menu "LWIP"
|
|||||||
config LWIP_IPV4_NAPT
|
config LWIP_IPV4_NAPT
|
||||||
bool "Enable NAT (new/experimental)"
|
bool "Enable NAT (new/experimental)"
|
||||||
depends on LWIP_IP_FORWARD
|
depends on LWIP_IP_FORWARD
|
||||||
select LWIP_L2_TO_L3_COPY
|
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enabling this option allows Network Address and Port Translation.
|
Enabling this option allows Network Address and Port Translation.
|
||||||
@ -1096,6 +1095,11 @@ menu "LWIP"
|
|||||||
depends on LWIP_DEBUG
|
depends on LWIP_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config LWIP_NAPT_DEBUG
|
||||||
|
bool "Enable NAPT debug messages"
|
||||||
|
depends on LWIP_DEBUG && LWIP_IPV4_NAPT
|
||||||
|
default n
|
||||||
|
|
||||||
config LWIP_BRIDGEIF_DEBUG
|
config LWIP_BRIDGEIF_DEBUG
|
||||||
bool "Enable bridge generic debug messages"
|
bool "Enable bridge generic debug messages"
|
||||||
depends on LWIP_DEBUG
|
depends on LWIP_DEBUG
|
||||||
|
@ -1338,6 +1338,15 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
|
|||||||
#define DNS_DEBUG LWIP_DBG_OFF
|
#define DNS_DEBUG LWIP_DBG_OFF
|
||||||
#endif
|
#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.
|
* MEMP_DEBUG: Enable debugging in memp.c.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user