Skip to main content

ip_from_bytes

Function ip_from_bytes 

Source
pub fn ip_from_bytes(addr: &[u8; 16]) -> Option<IpAddr>
Expand description

Decode a 16-byte PVA address field to an IpAddr.

Returns None for all-zeros (unspecified). IPv4-mapped addresses (::ffff:a.b.c.d) are returned as IpAddr::V4.