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

Method isLinkLocal

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

224.0.0.0/24 to 239.0.0.0/24

Source from the content-addressed store, hash-verified

112 bool isLoopback() const { return (ntohl(_addr.s_addr) & 0xFF000000) == 0x7F000000; } // 127.0.0.1 to 127.255.255.255
113 bool isMulticast() const { return (ntohl(_addr.s_addr) & 0xF0000000) == 0xE0000000; } // 224.0.0.0/24 to 239.0.0.0/24
114 bool isLinkLocal() const { return (ntohl(_addr.s_addr) & 0xFFFF0000) == 0xA9FE0000; } // 169.254.0.0/16
115
116 bool isSiteLocal() const {
117 UInt32 addr = ntohl(_addr.s_addr);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected