1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00
esp8266/tests/host/common/MocklwIP.cpp
david gauchard 5ca0bde200 MDNS: fix random crash on startup (#6261)
* mDNS debug option + AP address is used by default when STA is also present

* mDNS: store network interface, checking it is up

* igmp: force on selected interface (avoid crash *sometimes*)

* fix for all lwip2 ipv4 ipv6 & lwip1

* mdns: IPAddress is not needed to reference associated interface

* mdns: debug: fix print warnings

* emulation: add ets_strncpy

* emulation: truly emulate AddrList (remove fake one)
2019-09-04 20:10:47 -07:00

30 lines
377 B
C++

#include <AddrList.h>
#include <lwip/netif.h>
esp8266::AddressListImplementation::AddressList addrList;
extern "C"
{
extern netif netif0;
netif* netif_list = &netif0;
err_t dhcp_renew(struct netif *netif)
{
(void)netif;
return ERR_OK;
}
void sntp_setserver(u8_t, const ip_addr_t)
{
}
const ip_addr_t* sntp_getserver(u8_t)
{
return IP_ADDR_ANY;
}
} // extern "C"