Set 198.18.0.0/15 to IP_SCOPE_PRIVATE

This commit is contained in:
Grant Limberg 2020-09-16 10:15:42 -07:00
parent 83d92858c1
commit 1883a8c9ee
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -60,6 +60,9 @@ InetAddress::IpScope InetAddress::ipScope() const
case 0xc0:
if ((ip & 0xffff0000) == 0xc0a80000) return IP_SCOPE_PRIVATE; // 192.168.0.0/16
break;
case 0xc6:
if ((ip & 0xfffe0000) == 0xc6120000) return IP_SCOPE_PRIVATE; // 198.18.0.0/15
break;
case 0xff: return IP_SCOPE_NONE; // 255.0.0.0/8 (broadcast, or unused/unusable)
}
switch(ip >> 28) {