pub async fn pkt2name(pkt: &mut Cursor<&[u8]>) -> CDnsResult<Vec<u8>>
Expand description
Verifies the sequence of labels coding and copies data from pkt to buffer.
§Arguments
pkt
- a reference to the Cursor
§Returns
- CDnsResult with data copied to new Vec