
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.
15 lines
727 B
Go
15 lines
727 B
Go
package netsplit
|
|
|
|
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")
|
|
ErrBigPrefix error = errors.New("prefix length exceeds remaining network space")
|
|
ErrNoNetSpace error = errors.New("reached end of network space before splitting finished")
|
|
)
|