FIXED:
* IPv6 split-nets splitter didn't work. It does not.
  https://github.com/projectdiscovery/mapcidr/issues/628
  Noticed.
  As such, this library/program has *completely removed*
  ALL use of the mapcidr library as it cannot be expected
  to be accurate.
This commit is contained in:
brent saner
2025-04-13 03:36:47 -04:00
parent 4ab83c9069
commit c05f9c4d47
3 changed files with 38 additions and 58 deletions

View File

@@ -5,6 +5,7 @@ import "errors"
var (
ErrBadBoundary error = errors.New("subnet does not align on bit boundary")
ErrBadNumHosts error = errors.New("bad number of hosts; cannot split into prefix exactly")
ErrBadNumNets error = errors.New("bad number of nets; cannot split into prefix exactly")
ErrBadPrefix error = errors.New("prefix is invalid")
ErrBadPrefixLen error = errors.New("prefix length exceeds maximum possible for prefix's inet family")
ErrBadSplitter error = errors.New("invalid or unknown splitter when containing")