diff options
| author | tv <tv@krebsco.de> | 2026-10-31 21:12:50 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 21:12:50 +0100 |
| commit | 4e0d0312a591fd55e3dabbf5fa6dd9f00408c045 (patch) | |
| tree | 583dc02e8cb9f4221baa03cb2f26be4a17a3a525 /src/transport | |
| parent | cdcad619036aa04d48ad0925b507c25d86decdac (diff) | |
links report down
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/mod.rs | 3 | ||||
| -rw-r--r-- | src/transport/wire.rs | 3 |
2 files changed, 5 insertions, 1 deletions
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<String>, /// 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<u32>, /// 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<ParsedMessage> { peer: "p".into(), transport: Some("libp2p".into()), relayed: true, + down: false, rtt_us: Some(1500), dormant: false, others: vec