|
|
@@ -292,6 +292,13 @@ func TestIsNonPublicIP(t *testing.T) {
|
|
|
{"loopback IPv6", "::1", true},
|
|
|
{"multicast IPv6", "ff02::1", true},
|
|
|
{"site-local IPv6", "fec0::1", true},
|
|
|
+ {"discard-only IPv6", "100::1", true},
|
|
|
+ {"benchmarking IPv6", "2001:2::1", true},
|
|
|
+ {"benchmarking IPv6 upper bound", "2001:2:0:ffff:ffff:ffff:ffff:ffff", true},
|
|
|
+ {"documentation IPv6", "2001:db8::1", true},
|
|
|
+ {"documentation IPv6 3fff::/20", "3fff::1", true},
|
|
|
+ {"documentation IPv6 3fff::/20 upper bound", "3fff:fff:ffff:ffff:ffff:ffff:ffff:ffff", true},
|
|
|
+ {"SRv6 SID IPv6", "5f00::1", true},
|
|
|
{"NAT64 loopback IPv4", "64:ff9b::7f00:1", true},
|
|
|
{"NAT64 link-local IPv4", "64:ff9b::a9fe:a9fe", true},
|
|
|
{"NAT64 local-use private IPv4", "64:ff9b:1::a00:1", true},
|
|
|
@@ -312,6 +319,9 @@ func TestIsNonPublicIP(t *testing.T) {
|
|
|
{"public IPv4 after this network", "1.0.0.1", false},
|
|
|
{"public IPv4 before reserved", "223.255.255.254", false},
|
|
|
{"public IPv6", "2001:4860:4860::8888", false},
|
|
|
+ {"AMT IPv6 after benchmarking", "2001:3::1", false},
|
|
|
+ {"public IPv6 after documentation", "2001:db9::1", false},
|
|
|
+ {"public IPv6 after 3fff::/20", "3fff:1000::1", false},
|
|
|
{"NAT64 public IPv4", "64:ff9b::5db8:d822", false},
|
|
|
{"NAT64 local-use public IPv4", "64:ff9b:1::5db8:d822", false},
|
|
|
{"6to4 public IPv4", "2002:5db8:d822::1", false},
|