pub enum QueryRequest {
Show 52 variants
ManageInterface {
operation: InterfaceManagementOperation,
name: String,
},
InterfaceStats,
PathTable {
max_hops: Option<u8>,
},
RateTable,
LowestInterfaceBitrate,
MediumPathTimeout,
FirstHopTimeout {
dest_hash: [u8; 16],
},
NextHop {
dest_hash: [u8; 16],
},
NextHopIfName {
dest_hash: [u8; 16],
},
LinkCount,
ActiveLinkCount,
LinkDistribution,
DropPath {
dest_hash: [u8; 16],
},
DropAllVia {
transport_hash: [u8; 16],
},
DropAnnounceQueues,
TransportIdentity,
TransportStateSnapshot,
GetBlackholed,
BlackholeIdentity {
identity_hash: [u8; 16],
duration_hours: Option<f64>,
reason: Option<String>,
},
UnblackholeIdentity {
identity_hash: [u8; 16],
},
WantsDestinationType {
full_name: String,
requester: Vec<u8>,
},
UnwantsDestinationType {
full_name: String,
requester: Vec<u8>,
},
UnwantsAllDestinationTypes {
requester: Vec<u8>,
},
SetRequiredDestinationsOnly {
enabled: bool,
},
HasPath {
dest_hash: [u8; 16],
},
HopsTo {
dest_hash: [u8; 16],
},
RecallIdentity {
dest_hash: [u8; 16],
},
RecallDestinationStamp {
dest_hash: [u8; 16],
},
KnownDestinations,
LocalDestinations,
Links,
Resources,
InjectPath {
dest_hash: [u8; 16],
next_hop: [u8; 16],
hops: u8,
expires: f64,
interface_name: String,
packet_hash: [u8; 32],
},
InjectIdentity {
dest_hash: [u8; 16],
identity_hash: [u8; 16],
public_key: [u8; 64],
app_data: Option<Vec<u8>>,
hops: u8,
received_at: f64,
},
RestoreKnownDestination(KnownDestinationEntry),
RetainKnownDestination {
dest_hash: [u8; 16],
},
RetainIdentity {
identity_hash: [u8; 16],
},
UnretainKnownDestination {
dest_hash: [u8; 16],
},
MarkKnownDestinationUsed {
dest_hash: [u8; 16],
},
DiscoveredInterfaces {
only_available: bool,
only_transport: bool,
},
SendProbe {
dest_hash: [u8; 16],
payload_size: usize,
},
CheckProof {
packet_hash: [u8; 32],
},
ListRuntimeConfig,
GetRuntimeConfig {
key: String,
},
SetRuntimeConfig {
key: String,
value: RuntimeConfigValue,
},
ResetRuntimeConfig {
key: String,
},
BackbonePeerState {
interface_name: Option<String>,
},
BackboneInterfaces,
ProviderBridgeStats,
DrainStatus,
ClearBackbonePeerState {
interface_name: String,
peer_ip: IpAddr,
},
BlacklistBackbonePeer {
interface_name: String,
peer_ip: IpAddr,
duration: Duration,
reason: String,
penalty_level: u8,
},
}Expand description
Queries that can be sent to the driver.
Variants§
ManageInterface
InterfaceStats
Get interface statistics and transport info.
PathTable
Get path table entries, optionally filtered by max hops.
RateTable
Get rate table entries.
LowestInterfaceBitrate
Get the slowest positive bitrate among online interfaces.
MediumPathTimeout
Estimate an MTU round trip on the slowest interface plus hop grace.
FirstHopTimeout
Estimate the first-hop timeout for a destination using its outbound bitrate.
NextHop
Look up the next hop for a destination.
NextHopIfName
Look up the next hop interface name for a destination.
LinkCount
Get link table entry count.
ActiveLinkCount
Get validated or established link count.
LinkDistribution
Get per-destination link totals and active counts.
DropPath
Drop a specific path.
DropAllVia
Drop all paths that route via a given transport hash.
DropAnnounceQueues
Drop all announce queues.
TransportIdentity
Get the transport identity hash.
TransportStateSnapshot
Snapshot restart-relevant transport routing state.
GetBlackholed
Get all blackholed identities.
BlackholeIdentity
Add an identity to the blackhole list.
UnblackholeIdentity
Remove an identity from the blackhole list.
WantsDestinationType
wants_destination_type: a local application needs announces of
this destination type (upstream 825c2e19).
UnwantsDestinationType
unwants_destination_type: withdraw one such need.
UnwantsAllDestinationTypes
unwants_all_destination_types: withdraw every need of a requester.
SetRequiredDestinationsOnly
Reticulum.required_announces_only: let only required destination
types through.
HasPath
Check if a path exists to a destination.
HopsTo
Get hop count to a destination.
RecallIdentity
Recall identity info for a destination.
RecallDestinationStamp
Stamp value and announced link request cost recorded for a known destination.
KnownDestinations
List known-destination lifecycle state.
LocalDestinations
Get locally registered destinations.
Links
Get active links.
Resources
Get active resource transfers.
InjectPath
Inject a path entry into the path table.
Fields
InjectIdentity
Inject an identity into the known destinations cache.
Fields
RestoreKnownDestination(KnownDestinationEntry)
Restore a known destination with full lifecycle state.
RetainKnownDestination
Mark a known destination as explicitly retained.
RetainIdentity
Mark all known destinations announced by an identity as retained.
UnretainKnownDestination
Clear the retained flag on a known destination.
MarkKnownDestinationUsed
Mark a known destination as used.
DiscoveredInterfaces
Get discovered interfaces.
SendProbe
Send a probe packet to a destination and return (packet_hash, hops).
CheckProof
Check if a proof was received for a probe packet.
ListRuntimeConfig
List runtime-config entries currently supported by the daemon.
GetRuntimeConfig
Get a single runtime-config entry by key.
SetRuntimeConfig
Set a runtime-config value by key.
ResetRuntimeConfig
Reset a runtime-config value to its startup/default value.
BackbonePeerState
List live backbone peer state, optionally filtered to one interface.
BackboneInterfaces
List registered backbone server interfaces.
ProviderBridgeStats
Report live provider-bridge queue/drop state.
DrainStatus
Report current lifecycle/drain status.
ClearBackbonePeerState
Clear live backbone peer state for one interface/IP pair.
BlacklistBackbonePeer
Blacklist a backbone peer IP for a duration.