From 66f88a2f0042f5e6f75a496f71c0ad8d41b2c18b Mon Sep 17 00:00:00 2001 From: Audric Date: Mon, 15 Jun 2026 21:49:19 +0200 Subject: [PATCH] docs(routable): fix README link section-name match; note restart semantics; tighten wildcard wording --- README.md | 10 ++++++++-- docs/PEER_PROTOCOL.md | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 46f459d..4e4e303 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,10 @@ interest, regardless of `ROUTABLE_PREFIXES`. (longest-prefix-match: the more specific routable prefix wins). Point such a prefix at the reflector that actually owns those TGs. +**Runtime note:** the mesh-wide prefix set used for transit is built at startup, +so changing `ROUTABLE_PREFIXES` takes full effect on reflector restart (as with +`REMOTE_PREFIX`). + Example — four-node chain where `leaf` (prefix `222100`) needs to reach TG `263xx` owned by `far` (prefix `263`), transiting through both `natlit` (prefix `222`) and `natlde` (prefix `262`): @@ -311,8 +315,10 @@ SECRET=secret_natlit_natlde REMOTE_PREFIX=262 ROUTABLE_PREFIXES=263 -# On natlde — transit 263 back toward natlit (return path) and onward to far -[TRUNK_NATLDE_NATLIT] +# On natlde — transit 263 back toward natlit (return path). +# The section name MUST be identical on both ends of a link (see section 4), +# so natlde's trunk to natlit reuses the same [TRUNK_NATLIT_NATLDE] name. +[TRUNK_NATLIT_NATLDE] HOST=natlit.example.com SECRET=secret_natlit_natlde REMOTE_PREFIX=222 diff --git a/docs/PEER_PROTOCOL.md b/docs/PEER_PROTOCOL.md index d8a9989..f9ee7e3 100644 --- a/docs/PEER_PROTOCOL.md +++ b/docs/PEER_PROTOCOL.md @@ -221,8 +221,9 @@ participate in longest-prefix-match just like native prefixes: lowest-precedence prefix — a real prefix always wins — and is **never** added to `m_all_prefixes`. As a result: -- `isSharedTG` admits any TG via a `*`-configured link for local-client forwarding - and interest advertisement. +- `isSharedTG` admits via a `*`-configured link any TG not claimed by a longer + real prefix in `m_all_prefixes`, for local-client forwarding and interest + advertisement (a real prefix always wins over the zero-length wildcard). - `hasPrefixRoute` is **not** set for `*`-matched TGs, so `shouldRelayInbound` does not trigger the gateway arm. Wildcard-routed frames are delivered locally but never transited between trunks.