ADDED:
* num-nets subcommand' this is MUCH much faster than actually splitting
  if you're trying to figure out how many times a given subnet fits into
  a network.
This commit is contained in:
brent saner
2025-04-06 01:31:51 -04:00
parent 701b598b1c
commit 3c239a4d09
5 changed files with 91 additions and 8 deletions

View File

@@ -8,6 +8,12 @@ import (
`github.com/go-resty/resty/v2`
)
const (
maxBitsv4 uint8 = 32
maxBitsv6 uint8 = 128
maxBits uint8 = maxBitsv6
)
const (
cachedirEnvName string = "SBNTR_RSVCACHE_DIR"
// https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml