# Functions
AddrPortFromNet converts a net.Addr into a netip.AddrPort.
HostID masks out the 'bits' most-significant bits of addr.
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.