package
1.6.3
Repository: https://github.com/form3tech-oss/cilium.git
Documentation: pkg.go.dev

# Functions

CreateAndSetupIpvlanSlave creates an ipvlan slave device for the given master device, moves it to the given network namespace, and finally initializes it (see SetupIpvlanInRemoteNs).
CreateIpvlanSlave creates an ipvlan slave in L3 based on the master device.
No description provided by the author
DisableRpFilter tries to disable rpfilter on specified interface.
Endpoint2IfName returns the host interface name for the given endpointID.
Endpoint2TempIfName returns the temporary interface name for the given endpointID.
Endpoint2TempRandIfName returns a random, temporary interface name for the given endpointID.
GetNetInfoFromPID returns the index of the interface parent, the MAC address and IP address of the first interface that contains an IP address with global scope.
GetVethInfo populates the given endpoint with the arguments provided where * nodeIfName - Node Interface Name * parentIdx - Interface Index of the container veth pair in the host side.
IPv4Gateway returns the IPv4 gateway address for endpoints.
IPv4Routes returns IPv4 routes to be installed in endpoint's networking namespace.
IPv6Gateway returns the IPv6 gateway address for endpoints.
IPv6Routes returns IPv6 routes to be installed in endpoint's networking namespace.
SetupIpvlanInRemoteNs creates a tail call map, renames the netdevice inside the target netns and attaches a BPF program to it on egress path which then jumps into the tail call map index 0.
SetupVeth sets up the net interface, the temporary interface and fills up some endpoint fields such as LXCMAC, NodeMac, IfIndex and IfName.
SetupVethRemoteNs renames the netdevice in the target namespace to the provided dstIfName.
SetupVethWithNames sets up the net interface, the temporary interface and fills up some endpoint fields such as LXCMAC, NodeMac, IfIndex and IfName.
SufficientAddressing returns an error if the provided NodeAddressing does not provide sufficient information to derive all IPAM required settings.
WriteSysConfig tries to emulate a sysctl call by writing directly to the given fileName the given value.