almost done ackshually

This commit is contained in:
2025-01-31 17:18:35 -05:00
parent 6dcf5b9e2e
commit b09cb83017
21 changed files with 1646 additions and 3 deletions

12
netsplit/errs.go Normal file
View File

@@ -0,0 +1,12 @@
package netsplit
import "errors"
var (
ErrBadBoundary error = errors.New("subnet does not align on bit boundary")
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")
)