Function trust_dns_proto::rr::rdata::svcb::read

source ·
pub fn read(
    decoder: &mut BinDecoder<'_>,
    rdata_length: Restrict<u16>
) -> ProtoResult<SVCB>
Expand description

Reads the SVCB record from the decoder.

  Clients MUST consider an RR malformed if:

  *  the end of the RDATA occurs within a SvcParam.
  *  SvcParamKeys are not in strictly increasing numeric order.
  *  the SvcParamValue for an SvcParamKey does not have the expected
     format.

  Note that the second condition implies that there are no duplicate
  SvcParamKeys.

  If any RRs are malformed, the client MUST reject the entire RRSet and
  fall back to non-SVCB connection establishment.