Skip to main content

is_ipv6_ipv4_compatible

Function is_ipv6_ipv4_compatible 

Source
pub fn is_ipv6_ipv4_compatible(ip: Ipv6Addr) -> bool
Expand description

Returns true for the deprecated IPv4-compatible IPv6 form (::a.b.c.d, distinct from the IPv4-mapped ::ffff:a.b.c.d form already handled separately via to_ipv4_mapped()). Some stacks still route this form; treat any non-loopback, non-unspecified address here as embedding a target IPv4 address this guard has not yet validated.