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

Method isWellKnownMC

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

Source from the content-addressed store, hash-verified

123 bool isIPv4Compatible() const { return true; }
124 bool isIPv4Mapped() const { return true; }
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected