Skip to main content

Module peer_tracker

Module peer_tracker 

Source
Expand description

Peer delta update tracking.

Structsยง

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.
WatchNetmap
Subscribe to netmap peer-change events.
Whois
Resolve which node owns a tailnet source address.