Fuckin print the network

This commit is contained in:
niten 2023-11-03 12:27:00 -07:00
parent 9d031308aa
commit 70a1a6d6af
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ in rec {
in intToIpv4
(leftShift (rightShift fullMask insignificantBits) insignificantBits);
networkMinIp = network: intToIpv4 (1 + (ipv4ToInt (getNetworkBase network)));
networkMinIp = network:
intToIpv4
(1 + (ipv4ToInt (getNetworkBase (trace "NETWORK: ${network}" network))));
networkMaxIp = network:
intToIpv4 (rightPadBits (ipv4ToInt (getNetworkBase network))