GO-2024-3072 : Policy bypass for Host Firewall policy due to race condition in Cilium agent in github.com/cilium/cilium
Discover Packages
github.com/cilium/cilium
pkg
cidr
package
Version:
v1.13.18
Opens a new window with list of versions in this module.
Published: Jul 11, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 56
Opens a new window with list of known importers.
Documentation
Documentation
¶
Contains returns true if 'ipNets' contains ipNet.
ContainsAll returns true if 'ipNets1' contains all net.IPNet of 'ipNets2'
Equal returns true if the n and o net.IPNet CIDRs arr Equal.
RemoveAll removes all cidrs specified in 'toRemove' from 'ipNets'. ipNets
is clobbered (to ensure removed CIDRs can be garbage collected) and
must not be used after this function has been called.
Example usage:
cidrs = cidr.RemoveAll(cidrs, toRemove)
CIDR is a network CIDR representation based on net.IPNet
func DiffCIDRLists(old, new []*CIDR ) (add, remove []*CIDR )
DiffCIDRLists compares an old and new list of CIDRs and returns the list of
removed and added CIDRs
MustParseCIDR parses the CIDR string using net.ParseCIDR and panics if the
CIDR cannot be parsed
NewCIDR returns a new CIDR using a net.IPNet
ParseCIDR parses the CIDR string using net.ParseCIDR
AvailableIPs returns the number of IPs available in a CIDR
DeepCopy creates a deep copy of a CIDR
DeepCopyInto is a deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepEqual is an deepequal function, deeply comparing the receiver with other.
in must be non-nil.
Equal returns true if the receiver's CIDR equals the other CIDR.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.