Fix using DHCP IP configuration after lease time is expired.

Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
Matthias Hofmann 2017-07-25 14:32:21 +02:00 committed by goldsimon
parent 9b5d8f14a9
commit 9b06d71aeb

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;
}