MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / isIPv4Mapped

Method isIPv4Mapped

MonaBase/sources/IPAddress.cpp:251–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 return words[0] == 0 && words[1] == 0 && words[2] == 0 && words[3] == 0 && words[4] == 0 && words[5] == 0;
250 }
251 bool isIPv4Mapped() const {
252 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
253 return words[0] == 0 && words[1] == 0 && words[2] == 0 && words[3] == 0 && words[4] == 0 && ntohs(words[5]) == 0xFFFF;
254 }
255 bool isWellKnownMC() const {
256 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
257 return (ntohs(words[0]) & 0xFFF0) == 0xFF00;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected