Fixed bug #30038: dhcp_network_changed doesn't reset AUTOIP coop state

This commit is contained in:
goldsimon 2010-06-12 17:14:00 +00:00
parent 69bd5a29d9
commit 66b57f89df
2 changed files with 7 additions and 0 deletions

View File

@ -220,6 +220,10 @@ HISTORY
++ Bugfixes:
2010-06-12: Simon Goldschmidt
* dhcp.c: Fixed bug #30038: dhcp_network_changed doesn't reset AUTOIP coop
state
2010-05-17: Simon Goldschmidt
* netdb.c: Correctly NULL-terminate h_addr_list

View File

@ -754,6 +754,9 @@ dhcp_network_changed(struct netif *netif)
case DHCP_REBOOTING:
netif_set_down(netif);
dhcp->tries = 0;
#if LWIP_DHCP_AUTOIP_COOP
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
#endif /* LWIP_DHCP_AUTOIP_COOP */
dhcp_reboot(netif);
break;
case DHCP_OFF: