Documentation ¶
Index ¶
Constants ¶
View Source
const ( MapNameIPv4 = "cilium_ipmasq_v4" MaxEntriesIPv4 = 16384 MapNameIPv6 = "cilium_ipmasq_v6" MaxEntriesIPv6 = 16384 )
Variables ¶
This section is empty.
Functions ¶
func IPMasq4Map ¶
func IPMasq6Map ¶
Types ¶
type IPMasqBPFMap ¶
type IPMasqBPFMap struct{}
func (*IPMasqBPFMap) Dump ¶
func (*IPMasqBPFMap) Dump() ([]net.IPNet, error)
Dump dumps the contents of the ip-masq-agent maps for IPv4 and/or IPv6, as required based on configuration options.
func (*IPMasqBPFMap) DumpForProtocols ¶
func (*IPMasqBPFMap) DumpForProtocols(ipv4Needed, ipv6Needed bool) ([]net.IPNet, error)
DumpForProtocols dumps the contents of the ip-masq-agent maps for IPv4 and/or IPv6, as requested by the caller. Given that the package does not expose the maps directly, it's necessary to specify which protocol we need when ipMasq4Map/ipMasq6Map, or config options, have not been set, as is the case when calling from the CLI, for example.
Click to show internal directories.
Click to hide internal directories.