From c74790c6dddcf00b2dffc4f48efde11f6571705b Mon Sep 17 00:00:00 2001 From: arcnmx Date: Sat, 7 Sep 2024 14:29:39 -0700 Subject: [PATCH] fix(ci): eui64 address calculation --- ci/systems.json | 2 +- lib.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/systems.json b/ci/systems.json index ce52f241..6d444662 100644 --- a/ci/systems.json +++ b/ci/systems.json @@ -306,7 +306,7 @@ "int": null, "local": { "address4": "10.1.1.50", - "address6": "fd0a::2ba:46ff:fef8:4052", + "address6": "fd0a::ba:46ff:fef8:4052", "macAddress": "02:ba:46:f8:40:52" }, "tail": { diff --git a/lib.nix b/lib.nix index dfe91ed6..9ef15a0c 100644 --- a/lib.nix +++ b/lib.nix @@ -15,7 +15,7 @@ part = List.index parts; part0 = part: let nibble1' = UInt.FromHexDigit (Str.index part 1); - nibble1 = UInt.or' 2 nibble1'; + nibble1 = UInt.xor 2 nibble1'; nibble0 = Str.index part 0; in nibble0 + UInt.toHexLower nibble1;