summaryrefslogtreecommitdiffstats
path: root/lib/krebs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/krebs')
-rw-r--r--lib/krebs/genipv6.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/krebs/genipv6.nix b/lib/krebs/genipv6.nix
index af1df6d..b4806e1 100644
--- a/lib/krebs/genipv6.nix
+++ b/lib/krebs/genipv6.nix
@@ -12,7 +12,7 @@ let {
inherit netname;
netCIDR = "${netAddress}/${toString netPrefixLength}";
- netAddress = appendZeros netPrefixLength netPrefix;
+ netAddress = appendZeros addressLength netPrefix;
netHash = toString {
retiolum = 0;
wirelum = 1;
@@ -25,7 +25,7 @@ let {
inherit subnetname;
subnetCIDR = "${subnetAddress}/${toString subnetPrefixLength}";
- subnetAddress = appendZeros subnetPrefixLength subnetPrefix;
+ subnetAddress = appendZeros addressLength subnetPrefix;
subnetHash = hashToLength 4 subnetname;
subnetPrefix = joinAddress netPrefix subnetHash;
subnetPrefixLength = netPrefixLength + 16;