Add observed login path commands

This commit is contained in:
mikecarper committed 2026-09-02 19:23:56 -07:00
1 parent 66894f9958
commit ef92505429
8 files changed
+302 -24

No files matched your search

+11 -1
View File
@@ -1550,7 +1550,9 @@ The pin number is the Arduino pin number used by that target (the normal GPIO nu
#### View or set the direct path override for the current remote client
**Usage:**
- `get outpath`
- `get outpath path`
- `set outpath <hop1_hex,hop2_hex,...>`
- `set outpath path`
- `set outpath direct`
- `set outpath clear`
- `set outpath flood`
@@ -1560,8 +1562,16 @@ The pin number is the Arduino pin number used by that target (the normal GPIO nu
**Notes:**
- These commands require remote client context and update the caller's ACL entry.
- `get outpath path` reports the reciprocal `PAYLOAD_TYPE_PATH` received after
the caller's latest flood login without changing the selected output route.
Because that packet is asynchronous, an immediate query can report
`> path pending`; retry shortly. The observation window expires after one
minute, and the captured login path is not automatically selected.
- `set outpath path` copies that observed route to `outpath` and saves it. It
returns an error without changing `outpath` if no route was received.
- `direct` selects a zero-hop route for a directly reachable caller.
- `clear` forgets the override so normal path discovery can repopulate it.
- `clear` forgets the override, replies `> outpath cleared`, and allows normal
path discovery to repopulate it.
- `flood` forces replies to use flood packets until the client logs in again.
---
+13 -3
View File
@@ -195,7 +195,9 @@ can be copied directly into another `set outpath` or `set altpath` command.
```text
get outpath
get outpath path
set outpath A1B2C3,D4E5F6
set outpath path
set outpath direct
set outpath clear
set outpath flood
@@ -214,10 +216,18 @@ For example, both `set altpath 600000,0d2784,f8dada` and
The first CLI word is case-insensitive (`set`, `Set`, and `SET` are the same,
as are `get`, `Get`, and the other command verbs). Argument case is preserved.
`get outpath path` reports the reciprocal path received after the latest flood
login without changing `outpath`. That packet arrives asynchronously, so retry
shortly if the first query reports `> path pending`; the observation window
expires after one minute. The login path is not automatically selected.
`set outpath path` copies the observed route into `outpath` and saves it; it
leaves the current route unchanged when no observed route is available.
`set outpath direct` sets a zero-hop direct route for a client reachable without
repeaters. `set outpath clear` forgets the override and lets normal path
discovery fill it again. `set outpath flood` forces replies to use flood packets
until the client logs in again.
repeaters. `set outpath clear` forgets the override, replies
`> outpath cleared`, and lets normal path discovery fill it again.
`set outpath flood` forces replies to use flood packets until the client logs in
again.
When `outpath` is a valid direct path and `altpath` is also a valid, different
direct path, repeater DM replies send two packets: one on `outpath` and one on