Added ip_addr_set_zero_ip4() to explicitly set the type to IPv4 for dual-stack

This commit is contained in:
sg
2015-09-23 21:56:34 +02:00
parent e6b6543c33
commit 121268d320
2 changed files with 4 additions and 1 deletions

View File

@@ -1215,7 +1215,7 @@ dhcp_release(struct netif *netif)
/* idle DHCP client */
dhcp_set_state(dhcp, DHCP_STATE_OFF);
/* clean old DHCP offer */
ip_addr_set_zero(&dhcp->server_ip_addr);
ip_addr_set_zero_ip4(&dhcp->server_ip_addr);
ip4_addr_set_zero(&dhcp->offered_ip_addr);
ip4_addr_set_zero(&dhcp->offered_sn_mask);
ip4_addr_set_zero(&dhcp->offered_gw_addr);