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

Method isLinkLocalMC

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

Source from the content-addressed store, hash-verified

125 bool isWellKnownMC() const { return (ntohl(_addr.s_addr) & 0xFFFFFF00) == 0xE0000000; } // 224.0.0.0/8
126 bool isNodeLocalMC() const { return false; }
127 bool isLinkLocalMC() const { return (ntohl(_addr.s_addr) & 0xFF000000) == 0xE0000000; } // 244.0.0.0/24
128 bool isSiteLocalMC() const { return (ntohl(_addr.s_addr) & 0xFFFF0000) == 0xEFFF0000; } // 239.255.0.0/16
129 bool isOrgLocalMC() const { return (ntohl(_addr.s_addr) & 0xFFFF0000) == 0xEFC00000; } // 239.192.0.0/16
130

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected