instance method
Addrinfo#ipv6_unique_local?
() -> bool
ipv6_unique_local?
ext/socket/raddrinfo.c
View on GitHub ↗
static VALUE
addrinfo_ipv6_unique_local_p(VALUE self)
{
struct in6_addr *addr = extract_in6_addr(self);
if (addr && IN6_IS_ADDR_UNIQUE_LOCAL(addr)) return Qtrue;
return Qfalse;
}
Returns true for IPv6 unique local address (fc00::/7, RFC4193). It returns false otherwise.
See also
#ipv6_to_ipv4
#ipv6_unspecified?
#ipv6_sitelocal?
#ipv6_v4compat?
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0