Skip to content

Commit 5b3828f

Browse files
authored
Update IsIPv6ULA (project-chip#32879)
Per spec https://datatracker.ietf.org/doc/html/rfc4193#section-3.1 fc/7 prefixes are local addresses, fe/8 uses a specific method and address format, but fc/8 is still a unique local address block, just with an undefined format
1 parent 65e6b96 commit 5b3828f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inet/IPAddress.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ bool IPAddress::IsIPv6GlobalUnicast() const
319319
// Is address an IPv6 Unique Local Address?
320320
bool IPAddress::IsIPv6ULA() const
321321
{
322-
return (ntohl(Addr[0]) & 0xFF000000U) == 0xFD000000U;
322+
return (ntohl(Addr[0]) & 0xFE000000U) == 0xFC000000U;
323323
}
324324

325325
// Is address an IPv6 Link-local Address?

0 commit comments

Comments
 (0)