Skip to main content

Module inbound

Module inbound 

Source

Modulesยง

dns ๐Ÿ”’
ping ๐Ÿ”’
tcp ๐Ÿ”’
trace ๐Ÿ”’

Structsยง

InboundConfig
Configuration for an inbound packet listening worker.
ReplyMeta
Metadata of a received reply, shared by all parse functions.

Enumsยง

TxEncoding ๐Ÿ”’
Timestamp encodings for various measurement types

Functionsยง

find_cmsg ๐Ÿ”’
Find the payload of the first control message matching (level, type) in an ancillary data buffer. Returns the buffer remainder starting at the payload. cmsghdr on 64-bit: [0..8] len, [8..12] level, [12..16] type, [16..] payload
get_packet ๐Ÿ”’
Get a packet from a socket along with its metadata (source address, TTL, and kernel receive timestamp).
handle_results ๐Ÿ”’
Forward results to the Worker handler
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_hop_limit ๐Ÿ”’
Retrieve IPv6 hop limit from the ancillary_data buffer bytes
parse_kernel_timestamp ๐Ÿ”’
Retrieve kernel-provided receive timestamp (SO_TIMESTAMP) from ancillary data. Returns microseconds since epoch.
rtt_ms ๐Ÿ”’
Compute the RTT in milliseconds based on the timestamp encoding.