(address)
| 82 | } |
| 83 | |
| 84 | function isSpecialUseIPv4(address) { |
| 85 | const addr = ipv4ToInt(address); |
| 86 | const bucket = V4_OCTET_BUCKETS[(addr >>> 24) & 0xff]; |
| 87 | for (let i = 0; i < bucket.length; i++) { |
| 88 | if (((addr & bucket[i].mask) >>> 0) === bucket[i].prefix) return true; |
| 89 | } |
| 90 | return false; |
| 91 | } |
| 92 | |
| 93 | // IANA IPv6 Special-Purpose Address Space |
| 94 | // https://www.iana.org/assignments/iana-ipv6-special-registry/ |
no test coverage detected