diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 9ed58092e8..5d37ae7b93 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -211,6 +211,15 @@ menu "LWIP" Enabling this option performs a check (via ARP request) if the offered IP address is not already in use by another host on the network. + config LWIP_DHCP_DISABLE_CLIENT_ID + bool "DHCP: Disable Use of HW address as client identification" + default n + help + This option could be used to disable DHCP client identification with its MAC address. + (Client id is used by DHCP servers to uniquely identify clients and are included + in the DHCP packets as an option 61) + Set this option to "y" in order to exclude option 61 from DHCP packets. + config LWIP_DHCP_RESTORE_LAST_IP bool "DHCP: Restore last IP obtained from DHCP server" default n diff --git a/components/lwip/lwip b/components/lwip/lwip index 2c9c531f0a..2195f7416f 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit 2c9c531f0a7e0ee536db9de4f9dc54e453712087 +Subproject commit 2195f7416fb3136831babf3e96c027a73075bd4f diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index 6a53f58d00..8a1540b8fb 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -236,6 +236,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