rings: RingOnePrefix()/RingOneAddress()

Ring one designates the (virtual) local network of a zone
within a region.

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2024-05-25 21:22:33 +00:00
parent d3f9eed548
commit 30bb65b7a0
2 changed files with 45 additions and 0 deletions
+3
View File
@@ -18,6 +18,9 @@ const (
// NodeZeroMax indicates the highest number that can be used for a [NodeID]
// when its a gateway connected to Ring 0 (backbone).
NodeZeroMax = (1 << 8) - 1
// RingOneBits indicates the size of the prefix on the ring 1 (lan) network.
RingOneBits = 20
)
// RegionID is the identifier of a region, valid between 1 and [RegionMax].