Documentation ¶
Index ¶
- func BelongsTo(parent *net.IPNet, child *net.IPNet) bool
- func Overlap(l, r *net.IPNet) bool
- func SplitInto(additionalBits uint, parent *net.IPNet) ([]*net.IPNet, error)
- func SplitInto1(parent *net.IPNet) ([]*net.IPNet, error)
- func SplitInto2(parent *net.IPNet) ([]*net.IPNet, error)
- func SplitInto4(parent *net.IPNet) ([]*net.IPNet, error)
- func SplitInto8(parent *net.IPNet) ([]*net.IPNet, error)
- type CIDRMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitInto ¶ added in v1.28.0
SplitInto splits the parent IPNet into subnets with the specified number of additional bits in the prefix.
func SplitInto1 ¶ added in v1.28.0
SplitInto1 splits the parent IPNet into 1 subnet
func SplitInto2 ¶ added in v1.28.0
SplitInto2 splits the parent IPNet into 2 subnets
func SplitInto4 ¶ added in v1.28.0
SplitInto4 splits the parent IPNet into 4 subnets
Types ¶
Click to show internal directories.
Click to hide internal directories.