Skip to main content

Module peer_tracker

Module peer_tracker 

Source
Expand description

Peer delta update tracking.

Structs§

AllPeers
Return every known peer’s full domain Node (not the lossy StatusNode).
GetStatus
Build the peer entries of a Status snapshot, each paired with its PeerId so Runtime::status can join per-peer connectivity (cur_addr/relay) from the direct manager before returning. The self node is not included here (it lives in the control runner); Runtime::status combines both and drops the ids.
PeerByAcceptedRoute
Lookup all peers that accept packets addressed to the given IP.
PeerByName
Lookup a peer by name.
PeerByTailnetIp
Lookup the peer that has the given tailnet IP address.
PeerDb
A database that stores a map of peers by PeerId and multiple indices.
PeerTracker
Actor that tracks peer delta updates and emits new states.
RepublishState
Ask the peer tracker to re-broadcast its current peer snapshot on the bus, without any peer change. Sent after a runtime preference change so the route updater and source filter (both Arc<PeerState> subscribers) re-resolve against the new value immediately, rather than waiting for the next netmap update: Device::set_exit_node (new exit-node selector) and Device::set_accept_routes (new accept-routes flag) both send it.
TkaAuthorityUpdate
Bus message delivering the latest verified Tailnet-Lock Authority from the control runner (after a successful /machine/tka/sync) to the peer tracker for observe-only verify-and-logging (issue #136). Cloned onto the bus (Authority is Clone); the control runner re-publishes on every successful sync since the bus has no replay for a late subscriber.
WatchNetmap
Subscribe to netmap peer-change events.
Whois
Resolve which node owns a tailnet source address.