mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00
dhcp_release_and_stop: don't clear netif ip address that was not assigned by dhcp.c
See bug #55380
This commit is contained in:
parent
1bd34ea364
commit
91a4d59eb4
@ -1365,10 +1365,10 @@ dhcp_release_and_stop(struct netif *netif)
|
|||||||
/* sending release failed, but that's not a problem since the correct behaviour of dhcp does not rely on release */
|
/* sending release failed, but that's not a problem since the correct behaviour of dhcp does not rely on release */
|
||||||
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n"));
|
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n"));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* remove IP address from interface (prevents routing from selecting this interface) */
|
/* remove IP address from interface (prevents routing from selecting this interface) */
|
||||||
netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
|
netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
|
||||||
|
}
|
||||||
|
|
||||||
#if LWIP_DHCP_AUTOIP_COOP
|
#if LWIP_DHCP_AUTOIP_COOP
|
||||||
if (dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_ON) {
|
if (dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_ON) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user