fix(ci): eui64 address calculation

This commit is contained in:
arcnmx 2024-09-07 14:29:39 -07:00
parent 0fc4345634
commit c74790c6dd
2 changed files with 2 additions and 2 deletions

View file

@ -306,7 +306,7 @@
"int": null, "int": null,
"local": { "local": {
"address4": "10.1.1.50", "address4": "10.1.1.50",
"address6": "fd0a::2ba:46ff:fef8:4052", "address6": "fd0a::ba:46ff:fef8:4052",
"macAddress": "02:ba:46:f8:40:52" "macAddress": "02:ba:46:f8:40:52"
}, },
"tail": { "tail": {

View file

@ -15,7 +15,7 @@
part = List.index parts; part = List.index parts;
part0 = part: let part0 = part: let
nibble1' = UInt.FromHexDigit (Str.index part 1); nibble1' = UInt.FromHexDigit (Str.index part 1);
nibble1 = UInt.or' 2 nibble1'; nibble1 = UInt.xor 2 nibble1';
nibble0 = Str.index part 0; nibble0 = Str.index part 0;
in in
nibble0 + UInt.toHexLower nibble1; nibble0 + UInt.toHexLower nibble1;