Module inbound

Source

Structsยง

DnsResult ๐Ÿ”’
InboundConfig
Configuration for an inbound packet listening worker.

Enumsยง

Addr ๐Ÿ”’

Functionsยง

get_origin_id_v4 ๐Ÿ”’
Get the origin ID from the origin map based on the reply destination address and ports.
get_origin_id_v6 ๐Ÿ”’
Get the origin ID from the origin map based on the reply destination address and ports.
handle_results ๐Ÿ”’
Thread for handling the received replies, wrapping them in a TaskResult, and streaming them back to the main worker class.
inbound
Listen for incoming packets Creates two threads, one that listens on the socket and another that forwards results to the orchestrator and shuts down the receiving socket when appropriate. Makes sure that the received packets are valid and belong to the current measurement.
parse_chaos ๐Ÿ”’
Attempts to parse the DNS Chaos record from a UDP payload body.
parse_dns_a_record_v4 ๐Ÿ”’
Attempts to parse the DNS A record from a UDP payload body.
parse_dns_a_record_v6 ๐Ÿ”’
Attempts to parse the DNS A record from a DNS payload body.
parse_dnsv4 ๐Ÿ”’
Parse DNSv4 packets (including v4 headers) into a Reply result.
parse_dnsv6 ๐Ÿ”’
Parse DNSv6 packets (including v6 headers) into a Reply.
parse_icmpv4 ๐Ÿ”’
Parse ICMPv4 packets (including v4 headers) into a Reply result.
parse_icmpv6 ๐Ÿ”’
Parse ICMPv6 packets (including v6 headers) into a Reply result.
parse_ipv4 ๐Ÿ”’
Parse packet bytes into an IPv4 header, returns the IP result for this header and the payload.
parse_ipv6 ๐Ÿ”’
Parse packet bytes into an IPv6 header, returns the IP result for this header and the payload.
parse_tcpv4 ๐Ÿ”’
Parse TCPv4 packets (including v4 headers) into a Reply result.
parse_tcpv6 ๐Ÿ”’
Parse TCPv6 packets (including v6 headers) into a Reply result.