Skip to main content

parse_name

Function parse_name 

Source
pub fn parse_name(buf: &[u8], start: usize) -> Option<(String, usize)>
Expand description

Parse a DNS domain name at start in buf.

Returns the decompressed name and the byte position after the parsed name (either the zero-length terminator or the compression pointer). Labels > 63 bytes return None. Compression loops return None.