link

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 13

Documentation

Overview

Package link provides the Cilium specific abstraction and useful helpers to manage network interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteByName

func DeleteByName(ifName string) error

DeleteByName deletes the interface with the name ifName.

func GetHardwareAddr

func GetHardwareAddr(ifName string) (mac.MAC, error)

func GetIfIndex

func GetIfIndex(ifName string) (uint32, error)

func GetIfNameCached added in v1.10.0

func GetIfNameCached(ifIndex int) (string, bool)

GetIfNameCached returns the name of an interface (if it exists) by looking it up in a regularly updated cache

func Rename

func Rename(curName, newName string) error

Rename renames a network link

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL