From a0c6850d85e1f8f1d9613a323df12d1c94cce8f6 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 21:12:50 +0100 Subject: links report down --- src/transport/mod.rs | 3 +++ src/transport/wire.rs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/transport') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 2093e3d..705e473 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -435,6 +435,9 @@ pub(crate) struct Link { pub(crate) transport: Option, /// Only through a relay (libp2p). pub(crate) relayed: bool, + /// The path in use is down: none to the peer answers (`paths`), whatever its + /// connection was. + pub(crate) down: bool, /// The round trip on that path, in microseconds, if measured. pub(crate) rtt_us: Option, /// Silent for long (`peers.md`, dormancy). diff --git a/src/transport/wire.rs b/src/transport/wire.rs index 26794a1..0ce8c33 100644 --- a/src/transport/wire.rs +++ b/src/transport/wire.rs @@ -14,7 +14,7 @@ use super::{EncodedMessage, MessageKind, ParsedMessage}; /// The wire format's version, the first byte of every payload. Bump it with every change /// to a message type or a codec (`golden_bytes` fails then). -pub(crate) const VERSION: u8 = 13; +pub(crate) const VERSION: u8 = 14; /// What the second byte of a payload says. fn tag(kind: MessageKind) -> u8 { @@ -437,6 +437,7 @@ pub(crate) fn samples() -> Vec { peer: "p".into(), transport: Some("libp2p".into()), relayed: true, + down: false, rtt_us: Some(1500), dormant: false, others: vec![crate::transport::OtherPath { -- cgit v1.3.1