aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 21:47:31 +0100
committertv <tv@krebsco.de>2026-10-30 21:47:31 +0100
commitce191f8319876b0e369c29c565fd9eb63892187c (patch)
tree5f4c759f1fcce14570205736f42253359204671e /src/transport/mod.rs
parentdb6e1ad6592aefce8a99db8478fac0baae09b228 (diff)
allow links subscriptions
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index 7fbbd73..903dd07 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -403,6 +403,10 @@ pub(crate) struct LinksRequest {
pub(crate) epoch_seq: u32,
/// Repeated in the reply: which request it answers.
pub(crate) nonce: u64,
+ /// For this long (seconds), a LINKS_REPLY again whenever the links change (a
+ /// subscription; the next LINKS renews it). 0: this reply only, and a subscription
+ /// ends.
+ pub(crate) subscribe_secs: u32,
}
/// LINKS_REPLY: how the sender is linked to its neighbours, as it measures them.