From e65f3df12359b231bf3c9969933883cc81c8aa83 Mon Sep 17 00:00:00 2001 From: achaulk-goog <107196446+achaulk-goog@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:27:41 -0400 Subject: [PATCH] Update IsIPv6ULA 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 --- src/inet/IPAddress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inet/IPAddress.cpp b/src/inet/IPAddress.cpp index c6059fb1f56bdb..a5b191d20e4804 100644 --- a/src/inet/IPAddress.cpp +++ b/src/inet/IPAddress.cpp @@ -319,7 +319,7 @@ bool IPAddress::IsIPv6GlobalUnicast() const // Is address an IPv6 Unique Local Address? bool IPAddress::IsIPv6ULA() const { - return (ntohl(Addr[0]) & 0xFF000000U) == 0xFD000000U; + return (ntohl(Addr[0]) & 0xFE000000U) == 0xFC000000U; } // Is address an IPv6 Link-local Address?