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

Method isLinkLocal

MonaBase/sources/IPAddress.cpp:239–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 return (ntohs(words[0]) & 0xFFE0) == 0xFF00;
238 }
239 bool isLinkLocal() const {
240 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
241 return (ntohs(words[0]) & 0xFFE0) == 0xFE80;
242 }
243 bool isSiteLocal() const {
244 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
245 return (ntohs(words[0]) & 0xFFE0) == 0xFEC0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected