Affected by GO-2024-2922
and 4 other vulnerabilities
GO-2024-2922 : Cilium leaks sensitive information in cilium-bugtool in github.com/cilium/cilium
GO-2024-3071 : Gateway API route matching order contradicts specification in github.com/cilium/cilium
GO-2024-3072 : Policy bypass for Host Firewall policy due to race condition in Cilium agent in github.com/cilium/cilium
GO-2024-3074 : Cilium leaks information via incorrect ReferenceGrant update logic in Gateway API in github.com/cilium/cilium
GO-2024-3208 : Cilium's CIDR deny policies may not take effect when a more narrow CIDR allow is present in github.com/cilium/cilium
Discover Packages
github.com/cilium/cilium
pkg
cidr
package
Version:
v1.15.4
Opens a new window with list of versions in this module.
Published: Apr 11, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 56
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
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 are 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)
ZeroNet generates a zero net.IPNet object for the given address family
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.