From 82e5a18b50e541d58fa522501cc30bde4b30e757 Mon Sep 17 00:00:00 2001 From: Matthias Hofmann Date: Tue, 25 Jul 2017 14:32:21 +0200 Subject: [PATCH] Fix using DHCP IP configuration after lease time is expired. Signed-off-by: goldsimon (cherry picked from commit 9b06d71aebf692de53664dadff836c4c412c1ec6) --- src/core/ipv4/dhcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/ipv4/dhcp.c b/src/core/ipv4/dhcp.c index 334577a9..388e48af 100644 --- a/src/core/ipv4/dhcp.c +++ b/src/core/ipv4/dhcp.c @@ -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; }