Closed JureMalovrh closed 5 years ago
When trying to run this code: Ipv6Range.parse("fd00::/7").contains(Ipv6.of("fc00:0:0:0:0:0:0:0")), I get exception fd00::1/7 is not a legal IPv6 address prefix..
Ipv6Range.parse("fd00::/7").contains(Ipv6.of("fc00:0:0:0:0:0:0:0"))
fd00::1/7 is not a legal IPv6 address prefix.
Am I missing something here or why is this not correct prefix?
I checked everything and found out the issue. The behavior is correct and this subnet should get rejected.
When trying to run this code:
Ipv6Range.parse("fd00::/7").contains(Ipv6.of("fc00:0:0:0:0:0:0:0"))
, I get exceptionfd00::1/7 is not a legal IPv6 address prefix.
.Am I missing something here or why is this not correct prefix?