Module util

Module util 

Source

Enums§

DnstapHandlerError

Functions§

deserialize_dnstap_handler_error
dns_message_is_truncated
fmt_dns_message
try_from_u8_slice_for_ipaddr
Utility function that converts a slice of bytes into an IpAddr. Slices of length 4 are converted to IPv4 addresses and slices of length 16 are converted to IPv6 addresses. All other slice lengths are invalid. This is how IP addresses are encoded in dnstap protobuf messages.