Fix bug #50242: dhcp_release does not stop autoip (in coop mode)

Create new function dhcp_release_and_stop() that stops DHCP statemachine and sends release message if needed. Also stops AUTOIP if in coop mode.
Old dhcp_release() and dhcp_stop() function internally call dhcp_release_and_stop() now.
This commit is contained in:
Dirk Ziegelmeier
2017-03-01 13:18:37 +01:00
parent d8135f9ae2
commit ec4f00179d
2 changed files with 61 additions and 59 deletions

View File

@@ -114,6 +114,7 @@ err_t dhcp_start(struct netif *netif);
err_t dhcp_renew(struct netif *netif);
err_t dhcp_release(struct netif *netif);
void dhcp_stop(struct netif *netif);
void dhcp_release_and_stop(struct netif *netif);
void dhcp_inform(struct netif *netif);
void dhcp_network_changed(struct netif *netif);
#if DHCP_DOES_ARP_CHECK