From 6d89e0ea3ccf0639c6a693e6cc2bdcb08b6482f4 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 2 Jun 2024 22:06:45 +0000 Subject: [PATCH] rings: fix NodeZeroMax/NodeMax to not accept .255 Signed-off-by: Alejandro Mery --- pkg/rings/rings.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rings/rings.go b/pkg/rings/rings.go index 3c6de21..9626120 100644 --- a/pkg/rings/rings.go +++ b/pkg/rings/rings.go @@ -16,10 +16,10 @@ const ( // ZoneMax indicates the highest number that can be used for a [ZoneID]. ZoneMax = (1 << 4) - 1 // NodeMax indicates the highest number that can be used for a [NodeID]. - NodeMax = (1 << 12) - 1 + NodeMax = (1 << 12) - 2 // 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 + NodeZeroMax = (1 << 8) - 2 // RingZeroBits indicates the size of the prefix on the ring 0 (backbone) network. RingZeroBits = 16