mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 14:29:39 +00:00
Once again fixed #30038: DHCP/AutoIP cooperation failed when replugging the network cable after an AutoIP address was assigned.
This commit is contained in:
parent
4cc36b2284
commit
93dc36e091
@ -229,6 +229,10 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2010-10-05: Simon Goldschmidt
|
||||
* dhcp.c: Once again fixed #30038: DHCP/AutoIP cooperation failed when
|
||||
replugging the network cable after an AutoIP address was assigned.
|
||||
|
||||
2010-08-10: Simon Goldschmidt
|
||||
* tcp.c: Fixed bug #30728: tcp_new_port() did not check listen pcbs
|
||||
|
||||
|
@ -762,7 +762,10 @@ dhcp_network_changed(struct netif *netif)
|
||||
default:
|
||||
dhcp->tries = 0;
|
||||
#if LWIP_DHCP_AUTOIP_COOP
|
||||
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
|
||||
if(dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_ON) {
|
||||
autoip_stop(netif);
|
||||
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
|
||||
}
|
||||
#endif /* LWIP_DHCP_AUTOIP_COOP */
|
||||
dhcp_discover(netif);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user