lwip: Support DHCP restore last IP

This commit is contained in:
David Cermak
2022-03-23 19:20:06 +01:00
parent 7a04eb8d66
commit 356bc603c4
6 changed files with 66 additions and 69 deletions

View File

@@ -4,9 +4,11 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LWIP_ESP_DHCP_STATE_H
#define LWIP_ESP_DHCP_STATE_H
#ifndef _DHCP_STATE_H_
#define _DHCP_STATE_H_
#include <stdbool.h>
#include "lwip/netif.h"
#include <stdbool.h>
@@ -14,14 +16,14 @@
extern "C" {
#endif
bool dhcp_ip_addr_restore(void *netif);
bool dhcp_ip_addr_restore(struct netif *netif);
void dhcp_ip_addr_store(void *netif);
void dhcp_ip_addr_store(struct netif *netif);
void dhcp_ip_addr_erase(void *esp_netif);
void dhcp_ip_addr_erase(struct netif *netif);
#ifdef __cplusplus
}
#endif
#endif /* _DHCP_STATE_H_ */
#endif /* LWIP_ESP_DHCP_STATE_H */