mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-06-05 21:04:45 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user