package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev
# Functions
AddrPortFromNet converts a net.Addr into a netip.AddrPort.
HostID masks out the 'bits' most-significant bits of addr.
LastAddr returns the last address of prefix 'p'.
PrefixAfter returns the prefix of size 'sz' right after 'prev'.
PrefixCompare two prefixes and return a negative, 0, or a positive integer as required by [slices.SortFunc].
SubnetRange returns the amount to add to network.Addr() in order to yield the first and last addresses in subnet, respectively.
ToIPNet converts p into a *net.IPNet, returning nil if p is not valid.
ToPrefix converts n into a netip.Prefix.