1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-17 12:02:15 +03:00

Fixes for IPv6, added in CI (#5557)

This commit is contained in:
david gauchard
2018-12-27 16:13:48 +01:00
committed by GitHub
parent 9def8b0669
commit e3bc3c226b
12 changed files with 85 additions and 76 deletions

View File

@ -187,11 +187,6 @@ const IPAddress INADDR_NONE(255,255,255,255);
#if LWIP_IPV6
IPAddress::IPAddress(const ip_addr_t* from)
{
ip_addr_copy(_ip, *from);
}
bool IPAddress::fromString6(const char *address) {
// TODO: test test test

View File

@ -149,8 +149,8 @@ class IPAddress: public Printable {
/*
lwIP address compatibility
*/
IPAddress(const ipv4_addr& fw_addr) { setV4(); v4() = fw_addr.addr; }
IPAddress(const ipv4_addr* fw_addr) { setV4(); v4() = fw_addr->addr; }
IPAddress(const ip_addr_t& lwip_addr) { _ip = lwip_addr; }
operator ip_addr_t () const { return _ip; }
operator const ip_addr_t*() const { return &_ip; }
@ -163,7 +163,8 @@ class IPAddress: public Printable {
#if LWIP_IPV6
IPAddress(const ip_addr_t* from);
IPAddress(const ip_addr_t& lwip_addr) { ip_addr_copy(_ip, lwip_addr); }
IPAddress(const ip_addr_t* lwip_addr) { ip_addr_copy(_ip, *lwip_addr); }
uint16_t* raw6()
{