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:
@ -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
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user