mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
Fix bug #50618: dhcp_remove_struct() macro does not work
Patch by Benjamin Silvestre
(cherry picked from commit 819224f0e5
)
This commit is contained in:
parent
dbb3b3a3a1
commit
aecb1b9eb0
@ -108,7 +108,7 @@ struct dhcp
|
||||
|
||||
void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp);
|
||||
/** Remove a struct dhcp previously set to the netif using dhcp_set_struct() */
|
||||
#define dhcp_remove_struct(netif) do { (netif)->dhcp = NULL; } while(0)
|
||||
#define dhcp_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, NULL)
|
||||
void dhcp_cleanup(struct netif *netif);
|
||||
err_t dhcp_start(struct netif *netif);
|
||||
err_t dhcp_renew(struct netif *netif);
|
||||
|
Loading…
Reference in New Issue
Block a user