Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2018-10-17 16:00:52 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-10-17 16:00:52 +0300
commit54709646636d530aea6f4a93cba5401dc36b5309 (patch)
tree552bb569a9e7ad54b889e208b88eb148eb0f813c /src/Networking/W5500Ethernet/Wiznet/Ethernet/socketlib.cpp
parent1347ea638627e7969ea1fa6f059d497c8692925a (diff)
Version 2.02RC3 provisional
More refactoring of IP addresses in network code
Diffstat (limited to 'src/Networking/W5500Ethernet/Wiznet/Ethernet/socketlib.cpp')
-rw-r--r--src/Networking/W5500Ethernet/Wiznet/Ethernet/socketlib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Networking/W5500Ethernet/Wiznet/Ethernet/socketlib.cpp b/src/Networking/W5500Ethernet/Wiznet/Ethernet/socketlib.cpp
index 43a82fc8..37db94de 100644
--- a/src/Networking/W5500Ethernet/Wiznet/Ethernet/socketlib.cpp
+++ b/src/Networking/W5500Ethernet/Wiznet/Ethernet/socketlib.cpp
@@ -109,7 +109,7 @@ int8_t socket(uint8_t sn, uint8_t protocol, uint16_t port, uint8_t flag)
{
IPAddress taddr;
getSIPR(taddr);
- if (taddr.GetV4() == 0)
+ if (taddr.IsNull())
{
return SOCKERR_SOCKINIT;
}
@@ -264,7 +264,7 @@ int32_t sendto(uint8_t sn, const uint8_t * buf, uint16_t len, IPAddress destIp,
}
CHECK_SOCKDATA();
- if (destIp.GetV4() == 0)
+ if (destIp.IsNull())
{
return SOCKERR_IPINVALID;
}