Confirm peer data paths and fit the Devices window to its roster

Measure the encrypted round trip to each reachable peer using the existing overlay echo, including over mesh relays. Keep the last sample during a new probe or one missed reply. Clear it when the route or addresses are lost or two probes time out. Exclude these packets from application counters and idle activity. Ready and Idle require a confirmed path and a usable key.

Require a verified data path before a speed test can send, and let a responder finish its first echo if the initiator is ready first. Keep the payload on the encrypted tunnel and reserve time for reliable feedback within the five-second deadline. Native TCP TLS now prefers 9442, advertises the actual bound port and honors explicit overrides. Existing wire versions remain compatible.

Extend the network and peer traffic plots to the right edge. Set the initial Devices height from the roster and row spacing, bounded by the monitor and a 260–780 point range. Subsequent snapshots preserve manual resizing.

Validated on macOS arm64 with workspace formatting, strict Clippy and the locked all-targets suite (692 passed, 8 ignored by default). Also ran the opt-in 120-second WireGuard rekey test. Coverage includes a real three-agent relayed speed test, control-only rejection, delayed control feedback and resized egui frames. Cargo emitted a manifest warning about the existing directories dependency.
This commit is contained in:
Aleksandr Bogomiakov committed 2026-11-26 17:13:56 +02:00
1 parent a966152143
commit 87fa83e482
27 files changed
+772 -299

No files matched your search

+6 -4
View File
@@ -243,10 +243,12 @@ The client renews the selected exit peer's session key at 120 seconds, even
when no IP traffic is flowing. The current key can carry packets during the
exchange. Changing the exit moves this behavior to the new network and peer.
The device list shows **Idle** after an established tunnel has had 30 seconds
without IP traffic. Handshakes and keepalives do not restart this interval.
Pending IP packets, a missing path, or a selected exit waiting for a usable
key still show **Waiting**. A reported transport failure shows **Error**.
The device list shows **Idle** after 30 seconds without application traffic
on a confirmed path with a usable key and an empty packet queue. Encrypted
round-trip probes keep measuring an idle path all the way to the destination.
Probes, handshakes and keepalives leave the idle timer and application counters
unchanged. A missing key or an unconfirmed path shows **Waiting**. A reported
transport failure shows **Error**.
User traffic counters count original IP bytes once when the encrypted frame is
accepted by the logical transport, and once when decrypted on receipt. They do