mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
Fix using DHCP IP configuration after lease time is expired.
Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
parent
9b5d8f14a9
commit
9b06d71aeb
@ -1963,7 +1963,8 @@ dhcp_supplied_address(const struct netif *netif)
|
|||||||
{
|
{
|
||||||
if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) {
|
if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) {
|
||||||
struct dhcp* dhcp = netif_dhcp_data(netif);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user