# Functions
CloseLocalMaps closes all local conntrack maps opened previously for lookup with the given 'mapname'.
DeleteIfUpgradeNeeded attempts to open the conntrack maps associated with the specified endpoint, and delete the maps from the filesystem if any properties do not match the properties defined in this package.
Exists returns false if the CT maps for the specified endpoint (or global maps if nil) are not pinned to the filesystem, or true if they exist or an internal error occurs.
GC runs garbage collection for map m with name mapType with the given filter.
GetInterval returns the interval adjusted based on the deletion ratio of the last run.
GlobalMaps returns a slice of CT maps that are used globally by all endpoints that are not otherwise configured to use their own local maps.
InitMapInfo builds the information about different CT maps for the combination of L3/L4 protocols, using the specified limits on TCP vs non-TCP maps.
LocalMaps returns a slice of CT maps for the endpoint, which are local to the endpoint and not shared with other endpoints.
Lookup opens a conntrack map if necessary, and does a lookup on it with a key constructed from the parameters 'epname' is a 5-digit representation of the endpoint ID if local maps are to be used, or "global" if global maps should be used.
NameIsGlobal returns true if the specified filename (basename) denotes a global conntrack map.
NewMap creates a new CT map of the specified type with the specified name.
WriteBPFMacros writes the map names for conntrack maps into the specified writer, defining usage of the global map or local maps depending on whether the specified CtEndpoint is nil.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
Map names for "any" protocols indicate CT for non-TCP protocols.
No description provided by the author
Map names for TCP CT tables are retained from Cilium 1.0 naming scheme to minimize disruption of ongoing connections during upgrade.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MapTypeIPv4TCPLocal and friends are MapTypes which correspond to a combination of the following attributes: * IPv4 or IPv6; * TCP or non-TCP (shortened to Any) * Local (endpoint-specific) or global (endpoint-oblivious).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxTime specifies the last possible time for GCFilter.Time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
CtEntry represents an entry in the connection tracking table.
CtKey4 is needed to provide CtEntry type to Lookup values +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey.
CtKey4Global is needed to provide CtEntry type to Lookup values +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey.
CtKey6 is needed to provide CtEntry type to Lookup values +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey.
CtKey6Global is needed to provide CtEntry type to Lookup values +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey.
GCFilter contains the necessary fields to filter the CT maps.
Map represents an instance of a BPF connection tracking map.
# Interfaces
CtEndpoint represents an endpoint for the functions required to manage conntrack maps for the endpoint.
No description provided by the author
No description provided by the author
# Type aliases
MapType is a type of connection tracking map.