mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-11 01:53:48 +08:00
Added ip_addr_set_zero_ip4() to explicitly set the type to IPv4 for dual-stack
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user