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.
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. Device::set_exit_node sends this after changing the exit-node selector so the route updater and source filter (both Arc<PeerState> subscribers) re-resolve the new selector immediately, rather than waiting for the next netmap update.
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.