dhcp: Add post_init hook to allow skip discovery

2.1.3-esp: 14bba8e3 dhcp: Add post_init hook to allow skip discovery
Co-Authored-By: MartinValik <martin.valik@mail.com> (espressif/esp-lwip@3b88e84f)
This commit is contained in:
David Cermak
2022-03-23 13:09:03 +01:00
parent 8145bb96b3
commit 0d238cb76a
+6
View File
@@ -870,6 +870,12 @@ dhcp_start(struct netif *netif)
return ERR_OK;
}
#ifdef LWIP_HOOK_DHCP_POST_INIT
if (LWIP_HOOK_DHCP_POST_INIT(netif, result)) {
return result;
}
#endif
/* (re)start the DHCP negotiation */
result = dhcp_discover(netif);
if (result != ERR_OK) {