Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPRangeToCIDRs ¶
IPRangeToCIDRs accepts an arbitrary start and end IP address and returns a list of CIDR subnets that fit exactly between the boundaries of the two with no overlap.
func IPRangeToIPNets ¶
IPRangeToIPNets accepts an arbitrary start and end IP address and returns a list of CIDR subnets that fit exactly between the boundaries of the two with no overlap.
func MergeCIDRs ¶
MergeCIDRs accepts a list of CIDR blocks and merges them into the smallest possible list of CIDRs.
func MergeIPNets ¶
MergeIPNets accepts a list of IP networks and merges them into the smallest possible list of IPNets. It merges adjacent subnets where possible, those contained within others and removes any duplicates.
Types ¶
This section is empty.