Documentation
¶
Overview ¶
Package link provides the Cilium specific abstraction and useful helpers to manage network interfaces
Index ¶
- Variables
- func AddAltName(linkName, altName string) error
- func DeleteByName(ifName string) error
- func GetHardwareAddr(ifName string) (mac.MAC, error)
- func GetIfBufferMargins(ifName string) (uint16, uint16, error)
- func GetIfIndex(ifName string) (uint32, error)
- func Rename(curName, newName string) error
- type LinkCache
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "link-cache", "Provides a cache of link names to ifindex mappings", cell.Provide(newLinkCache), )
Functions ¶
func AddAltName ¶
SetAltNames sets the altnames for a link
func DeleteByName ¶
DeleteByName deletes the interface with the name ifName.
Returns nil if the interface does not exist.
func GetIfBufferMargins ¶ added in v1.19.0
func GetIfIndex ¶
Types ¶
type LinkCache ¶
type LinkCache struct {
// contains filtered or unexported fields
}
func NewLinkCache ¶
func NewLinkCache() *LinkCache
func (*LinkCache) GetIfNameCached ¶
GetIfNameCached returns the name of an interface (if it exists) by looking it up in a regularly updated cache. The return result is the same as a map lookup, ie nil, false if there is no entry cached for this ifindex.
Click to show internal directories.
Click to hide internal directories.