Function parse_chaos
Source fn parse_chaos(packet_bytes: &[u8]) -> Option<(u64, u32, String)>
Expand description
Attempts to parse the DNS Chaos record from a UDP payload body.
§Arguments
packet_bytes
- the bytes of the packet to parse
§Returns
Option<UdpPayload>
- the UDP payload containing the DNS Chaos record
The function returns None if the packet is too short to contain a DNS Chaos record.