Fix using DHCP IP configuration after lease time is expired.

Signed-off-by: goldsimon <goldsimon@gmx.de>
(cherry picked from commit 9b06d71aeb)
This commit is contained in:
Matthias Hofmann 2017-07-25 14:32:21 +02:00 committed by goldsimon
parent ac880ea907
commit 82e5a18b50

View File

@ -1942,7 +1942,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;
}