1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-12-10 20:02:26 +03:00

IPAddress updates (#5409)

* restore definition of ip_addr (=ipv4_addr) when IPv6 is not enabled

* overload IPAddress:operator == and != to avoid ambiguousness

* brings lwIP's INADDR_NONE (which is IPv4 255.255.255.255, suposed to be invalid address but it is)

* inet_aton is a lwIP define, rename Ethernet DNS implementation of this to prevent name collision
that's because IPAddress now includes lwip/inet.h
This commit is contained in:
david gauchard
2018-12-02 03:21:33 +01:00
committed by Develo
parent 4b16fa0a33
commit 324b3f9678
3 changed files with 16 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ public:
@result 1 if aIPAddrString was successfully converted to an IP address,
else error code
*/
int inet_aton(const char *aIPAddrString, IPAddress& aResult);
int inet_aton_ethlib(const char *aIPAddrString, IPAddress& aResult);
/** Resolve the given hostname to an IP address.
@param aHostname Name to be resolved