Fix using DHCP IP configuration after lease time is expired.

Signed-off-by: goldsimon <[email protected]>
This commit is contained in:
Matthias Hofmann
2017-07-25 21:46:57 +02:00
committed by goldsimon
parent 9b5d8f14a9
commit 9b06d71aeb
+2 -1
View File
@@ -1963,7 +1963,8 @@ dhcp_supplied_address(const struct netif *netif)
{
if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) {
struct dhcp* dhcp = netif_dhcp_data(netif);
return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING);
return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
(dhcp->state == DHCP_STATE_REBINDING);
}
return 0;
}