mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
lwip: Add config for DHCP client id; Fix DNS server idx assert issue
This commit brings two esp-lwip fixes to IDF: 1) Add configuration to disable DHCP client identification2195f7416f
This config could be used to disable option 61 in DHCP packets, so that clients will be identified by their chaddr only. (This is the lwip upstream original behaviour) 2) Fix server_idx increasing to DNS_MAX_SERVERS and trigger the LWIP_ASSERT5a567d52f7
When lwip doesn't have DNS server and resolve a domain address, the server_idx will increase to DNS_MAX_SERVERS, which will trigger the LWIP_ASSERT and make device crash. Closes https://github.com/espressif/esp-idf/issues/6878
This commit is contained in:
@@ -249,6 +249,10 @@
|
||||
*/
|
||||
#define DHCP_DOES_ARP_CHECK CONFIG_LWIP_DHCP_DOES_ARP_CHECK
|
||||
|
||||
/**
|
||||
* LWIP_DHCP_DISABLE_CLIENT_ID==1: Do not add option 61 (client-id) to DHCP packets
|
||||
*/
|
||||
#define ESP_DHCP_DISABLE_CLIENT_ID CONFIG_LWIP_DHCP_DISABLE_CLIENT_ID
|
||||
|
||||
/**
|
||||
* CONFIG_LWIP_DHCP_RESTORE_LAST_IP==1: Last valid IP address obtained from DHCP server
|
||||
|
Reference in New Issue
Block a user