diff --git a/src/core/ipv4/dhcp.c b/src/core/ipv4/dhcp.c index 76b9f682..503ceea9 100644 --- a/src/core/ipv4/dhcp.c +++ b/src/core/ipv4/dhcp.c @@ -795,6 +795,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) {