# Functions
CoalesceCIDRs transforms the provided list of CIDRs into the most-minimal equivalent set of IPv4 and IPv6 CIDRs.
CountIPsInCIDR takes a RFC4632/RFC4291-formatted IPv4/IPv6 CIDR and determines how many IP addresses reside within that CIDR.
GetCIDRPrefixesFromIPs returns all of the ips as a slice of *net.IPNet.
GetExcludedIPs returns a list of IPs from netdevices that Cilium needs to exclude to operate.
GetNextIP returns the next IP from the given IP address.
IPToPrefix returns the corresponding IPNet for the given IP.
IsExcluded returns whether a given IP is must be excluded due to coming from blacklisted device.
IsPublicAddr returns whether a given global IP is from a public range.
KeepUniqueIPs transforms the provided multiset of IPs into a single set, lexicographically sorted via a byte-wise comparison of the IP slices (i.e.
ParseCIDRs fetches all CIDRs referred to by the specified slice and returns them as regular golang CIDR objects.
RemoveCIDRs removes the specified CIDRs from another set of CIDRs.
# Type aliases
NetsByMask is used to sort a list of IP networks by the size of their masks.
NetsByRange is used to sort a list of ranges, first by their last IPs, then by their first IPs Implements sort.Interface.