github ratspeak/rsReticulum v1.5.1

one hour ago
  • Bluetooth Peer runs in Gateway mode, so a node with transport on looks up the paths its Bluetooth peers ask for that it doesn't know yet. Nodes with transport off behave as before.
  • TCP and Backbone client interfaces report why they can't connect: last_connect_error (refused, timed_out, dns, unreachable, closed_by_peer, or other) and connect_failures in the interface stats, so an application can tell a hub that refuses or closes the connection from one still connecting. The shared-instance RPC doesn't carry them.
  • I2P interfaces log their .b32.i2p address once reachable, at loglevel 5 or higher, as Python Reticulum does.
  • Interface start-up code is compiled once instead of again in every crate that starts the runtime, which makes rnsd-rs about 1.5 MB smaller.
  • Bluetooth RNodes report battery, temperature, and channel load in the interface stats, as USB RNodes already do (battery_state, battery_percent, cpu_temp, noise_floor).
  • Bluetooth Peer: on Android, a link the app closes after a failed write reports Disconnected, so the peer no longer stays listed as connected. On Linux, disconnecting a peer reports it too, and the Central role keeps looking for a Bluetooth adapter that appears after start-up instead of giving up until restart.
  • Path requests are handled as in Python Reticulum 1.6.0. A node that knows a path but can't read its cached announce ignores the request instead of searching the network and blocking later requests for 45 seconds. A queued path response is dropped once other nodes are heard answering. Requests that arrive during a path-request burst are counted and checked before they wait, so duplicates no longer crowd out real ones. A search answer now also reaches a requester on the roaming interface it arrived on. A node asked again for a path it's about to answer keeps the answer's time, so a requester that repeats quickly is no longer left waiting forever.
  • Announce handler events carry emitted, the time the announcer stamped into the announce, so an application can tell an older cached announce in a path response from a newer one. AnnounceHandlerEvent struct literals need the new field.
  • Follows Python Reticulum 1.6.1. Announces and path requests are stamped by default, and stamp_destinations / stamp_prs can only turn stamping on, as upstream. New [stamps] max_workers and worker_niceness. Discovery stamps are accepted in both workblock forms. rngit takes stamp_value and link_cost.
  • Announces that can't change a known path are dropped before they are verified, each interface holds at most 64 announces during a burst and drops the useless ones early, and the announce rate table survives restarts. An announce isn't rebroadcast to an interface that already sent it to us, or after it only replaced an unresponsive path. A locally built announce must leave room for a relay's transport id, and is refused with DestinationError::AnnounceTooLarge (now #[non_exhaustive]) otherwise.
  • Paths to an instance's own local clients never time out, are marked responsive, and are answered only to the asker; a local client asking for a known path is answered from the table. A path request that leaves nothing in progress no longer blocks later requests for 45 seconds. Destination type filters take <hash> entries and the known_destination_types / flagged_destination_types files, Backbone listeners honour a blocked_ips file, interfaces take hop_limiter, and reverse-table entries expire after 3 minutes.
  • Tunnel synthesis carries signed stamp costs, version, and transport status, and hubs answer it; a bad signature or a blackholed hub detaches the interface, and an embedder hears each detach through ReticulumHandle::subscribe_interface_detaches. An unbound tunnel waits 10 minutes for its interface.
  • Received traffic is counted as accepted or filtered, links count their traffic and speeds, and the shared-instance RPC carries everything Python 1.6.1's rnstatus and rnpath read, plus known_destinations, link_distribution, and detach by tunnel id. rnstatus-rs and rnpath-rs show the 1.6.1 output, and the tools look for a path of their own before linking. PathTableEntry.used is now Option<f64>.
  • Backbone listeners take client_limit (default 500), and auto-connect stops at 12 discovered interfaces unless its caps are disabled.
  • A discovered interface's config entry drops line breaks and control characters from announced strings, so a pasted entry can't gain config sections.
  • destination_stamper::prepare makes and saves a destination's stamp before its first announce.
  • A shared-instance client's first announce is no longer lost: its registration path response now waits 250 ms, as upstream, so the shared instance passes the announce on. Integer config values take _ digit groups (1_0), as Python's int() does.
  • rnsh-rs listeners no longer end a session when a client's identification and first message arrive together, rnx-rs sends results it used to drop silently (16 MB of output failed), and cuts output over about 30 MiB instead of dropping it, so the client prints its usual truncation notice, and rnpath-rs prints Sending request... only once its link is up.

Don't miss a new rsReticulum release

NewReleases is sending notifications on new releases.