Fold network cards and show which peer carries exit traffic
Start the tray and Android overviews with each network folded under its bold name. Keep the selected exit, its host name and its sent and received byte totals visible. Put VIP beside Copy secret and Show devices. Default to bytes and make the unit switch update the desktop traffic column, totals, rates and plots together. Open the devices window at 1000 points wide and bound the network and per-peer plots. Use both sides of the phone detail view for transport, latency, version and traffic. Attach counters to the current network and exit peer. Count off-mesh IP bytes after carrier acceptance and replies after local interface delivery. Changing the selection starts new totals. Ordinary mesh traffic to the same peer and rejected packets stay out of the exit counters. Advertise the agent release as an optional bounded trailer on an authenticated control v8 announcement. Older readers can ignore it and older peers display an unknown version. Release labels live for the session and do not participate in authentication or wire negotiation. The new status fields require local IPC v25, so update the daemon, CLI and tray together. Existing mesh identities and databases need no migration. On Android, request system interface consent on the first app launch. Respect an explicit stop or declined consent across launches. Start Tsunagi Agent re-enables automatic startup. Checked formatting and strict workspace Clippy on macOS arm64. The full locked workspace suite passed 588 tests with four opt-in tests ignored. Built the tray and Android debug APKs. Both instrumentation tests passed on an Android 37 arm64 emulator, including app startup, stop and restart. Checked the first-run permission prompt and the rendered phone and desktop layouts. Native Linux and Windows tests were not run on this host.
This commit is contained in:
1 parent
f9f67f88b1
commit
8c4c2fa34e
39 files changed
+1144
-412
No files matched your search
+15
-5
@@ -15,10 +15,12 @@ Upgrading the crate or bumping the control protocol must never change an
|
||||
existing `NetworkId`.
|
||||
|
||||
Control version 8 adds signed, multi-writer VIP field snapshots to version 7's
|
||||
node retirements. Data ALPN is `tsunagi/data/6` for the single internal WireGuard channel. All members must upgrade
|
||||
together. Network ids, derivation labels, handshake encoding and existing record
|
||||
signatures are unchanged. Local CLI/tray IPC is version 23; restart the agent
|
||||
with matching clients. SQLite schema 10 adds `vip_fields`, preserving identity,
|
||||
node retirements. The transition from control v7 to v8 requires updating all
|
||||
members together. Members already on v8 can adopt the optional software version
|
||||
field independently. Data ALPN is `tsunagi/data/6` for the single internal
|
||||
WireGuard channel. Network ids, derivation labels, handshake encoding and
|
||||
existing record signatures are unchanged. Local CLI/tray IPC is version 25.
|
||||
Restart the agent with matching clients. SQLite schema 10 adds `vip_fields`, preserving identity,
|
||||
network configuration, signed node records and retirement proofs.
|
||||
See [virtual services](vip.md), [state sync](sync-model.md) and [AWG](amnezia.md).
|
||||
|
||||
@@ -248,7 +250,7 @@ not affect other networks.
|
||||
|
||||
| message | meaning |
|
||||
|---|---|
|
||||
| `Announce { hostname, capabilities, broadcast }` | this agent's hostname, IP-plugin capabilities and local broadcast participation |
|
||||
| `Announce { broadcast, exit_node, hostname, capabilities, agent_version? }` | this agent’s hostname, capabilities, broadcast and exit settings, and optional software release |
|
||||
| `Transport { protocol, payload }` | private, bounded per-peer transport negotiation; never state or a public message event |
|
||||
| `Ping { seq, payload }` | small request used to verify the exchange |
|
||||
| `Pong { seq, payload }` | the echoed reply |
|
||||
@@ -258,6 +260,14 @@ not affect other networks.
|
||||
| `Reachable { links }` | sender's current direct data links, by kind of transport |
|
||||
| `Bye { reason }` | graceful goodbye; not a revocation of anything |
|
||||
|
||||
The final field of an authenticated announcement is an optional Tsunagi software
|
||||
version. It is a display hint for the current session. Control v8 readers that
|
||||
predate the field stop decoding after the capabilities. Updated readers accept a
|
||||
frame ending there and show the version as unknown. A present label is limited
|
||||
to 64 ASCII letters, digits, dots, plus signs and hyphens. An invalid hint is
|
||||
ignored. Authentication, identity derivation and transport selection use their
|
||||
own wire versions independently of this label.
|
||||
|
||||
`broadcast` is a per-network local opt-in, enabled by default and treated as
|
||||
false until an authenticated announcement arrives. It governs IP broadcast
|
||||
fanout and local admission; encrypted transit still uses the existing envelope.
|
||||
|
||||
Reference in new issue
Block a user