Once again fixed #30038: DHCP/AutoIP cooperation failed when replugging the network cable after an AutoIP address was assigned.

This commit is contained in:
goldsimon 2010-10-06 11:40:30 +00:00
parent 4cc36b2284
commit 93dc36e091
2 changed files with 8 additions and 1 deletions

View File

@ -229,6 +229,10 @@ HISTORY
++ Bugfixes: ++ 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 2010-08-10: Simon Goldschmidt
* tcp.c: Fixed bug #30728: tcp_new_port() did not check listen pcbs * tcp.c: Fixed bug #30728: tcp_new_port() did not check listen pcbs

View File

@ -762,7 +762,10 @@ dhcp_network_changed(struct netif *netif)
default: default:
dhcp->tries = 0; dhcp->tries = 0;
#if LWIP_DHCP_AUTOIP_COOP #if LWIP_DHCP_AUTOIP_COOP
if(dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_ON) {
autoip_stop(netif);
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF; dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
}
#endif /* LWIP_DHCP_AUTOIP_COOP */ #endif /* LWIP_DHCP_AUTOIP_COOP */
dhcp_discover(netif); dhcp_discover(netif);
break; break;