| 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); |
| 118 | return (addr & 0xFF000000) == 0x0A000000 || // 10.0.0.0/24 |
| 119 | (addr & 0xFFFF0000) == 0xC0A80000 || // 192.68.0.0/16 |
| 120 | (addr >= 0xAC100000 && addr <= 0xAC1FFFFF); // 172.16.0.0 to 172.31.255.255 |
| 121 | } |
| 122 | |
| 123 | bool isIPv4Compatible() const { return true; } |
| 124 | bool isIPv4Mapped() const { return true; } |
nothing calls this directly
no outgoing calls
no test coverage detected