Checks whether an IP address has version number 6.
is_v6(x:ip) -> boolDescription
Section titled “Description”The is_v6 function checks whether the version number of a given IP address x
is 6.
Examples
Section titled “Examples”Check if an IP is IPv6
Section titled “Check if an IP is IPv6”from { x: 1.2.3.4.is_v6(), y: ::1.is_v6(),}{ x: false, y: true,}See Also
Section titled “See Also”is_v4,
is_multicast,
is_loopback,
is_private,
is_global,
is_link_local,
ip_category