Skip to main content

parse_aaaa_rdata

Function parse_aaaa_rdata 

pub fn parse_aaaa_rdata(
    rdata: &[u8],
) -> Result<Ipv6Addr, AddressRdataParseError>
Available on crate features dns and std only.
Expand description

Parse one complete AAAA-record RDATA value.

RFC 3596 Section 2.2 defines AAAA RDATA as exactly 16 address octets in network byte order. All 128-bit values are accepted; address-policy filtering belongs above the wire layer.