ipv6_v4compat?()
Returns true for IPv4-compatible IPv6 address (::/80). It returns false otherwise.
static VALUE addrinfo_ipv6_v4compat_p(VALUE self) { struct in6_addr *addr = extract_in6_addr(self); if (addr && IN6_IS_ADDR_V4COMPAT(addr)) return Qtrue; return Qfalse; }