Skip to content

Commit 73c46b0

Browse files
committed
Merge branch 'lwip/dhcp_network_changed_fix' into 'master'
fix(lwip): Fixed compilation issue with LWIP_DHCP_RESTORE_LAST_IP Closes IDFGH-13710 See merge request espressif/esp-idf!36512
2 parents 8354773 + ebef063 commit 73c46b0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

components/lwip/port/include/lwipopts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ extern "C" {
362362
*/
363363
#define LWIP_HOOK_DHCP_POST_INIT(netif, result) \
364364
(dhcp_ip_addr_restore(netif) ? ( dhcp_set_state(dhcp, DHCP_STATE_BOUND), \
365-
dhcp_network_changed(netif), \
365+
dhcp_network_changed_link_up(netif), \
366366
(result) = ERR_OK , \
367367
true ) : \
368368
false)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
idf_component_register(SRCS "lwip_test.c"
22
REQUIRES test_utils
33
INCLUDE_DIRS "."
4-
PRIV_REQUIRES unity lwip test_utils)
4+
PRIV_REQUIRES unity lwip test_utils nvs_flash)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
CONFIG_UNITY_ENABLE_FIXTURE=y
22
CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=n
3+
4+
# Added to enable compilation of DHCP last IP restore feature
5+
CONFIG_LWIP_DHCP_RESTORE_LAST_IP=y

0 commit comments

Comments
 (0)