ADDED:
* num-addrs subcommand, to get the number of hosts/addresses in a given
  prefix length
* get-net subcommand, to more easily get a single subnet from either the
  beginning or the end of a prefix. (MUCH FASTER than CIDR-splitting!)
This commit is contained in:
brent saner
2025-04-13 18:25:32 -04:00
parent c05f9c4d47
commit 860ad5842b
16 changed files with 334 additions and 78 deletions

View File

@@ -11,4 +11,5 @@ var (
ErrBadSplitter error = errors.New("invalid or unknown splitter when containing")
ErrBigPrefix error = errors.New("prefix length exceeds remaining network space")
ErrNoNetSpace error = errors.New("reached end of network space before splitting finished")
ErrUnknownPos error = errors.New("unknown subnet position")
)