Document site ID translation requirement for site-to-site links
Both sites default to site_id=0; gateway must rewrite site_id in announcements and protocol messages crossing the boundary. site_id=0 on a cross-site link is a gateway protocol error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -260,3 +260,9 @@ A node may set multiple bits.
|
||||
| TTL | `1` (LAN only) |
|
||||
|
||||
No Avahi or Bonjour dependency — nodes open a raw UDP multicast socket directly using standard POSIX APIs.
|
||||
|
||||
### Site ID Translation
|
||||
|
||||
`site_id = 0` means "local / unassigned". Both sides of a site-to-site link will independently default to `0`, so a gateway cannot forward announcements across the boundary without rewriting the field — all nodes on both sides would appear identical.
|
||||
|
||||
The gateway assigns a distinct non-zero `site_id` to each side and rewrites `site_id` in all announcements (and any protocol messages carrying a `site_id`) as they cross the boundary. Receiving an announcement with `site_id = 0` on a cross-site link is a gateway protocol error.
|
||||
|
||||
Reference in New Issue
Block a user