interfaces

package
v0.0.0-...-10c8642 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetachXDPFromAllInterfaces

func DetachXDPFromAllInterfaces() error

DetachXDPFromAllInterfaces detaches XDP from all interfaces on the system.

func GetInterfaceIndex

func GetInterfaceIndex(interfaceName string) (uint32, error)

GetInterfaceIndex returns the interface index of the interface with the given name.

func GetInterfaceIndices

func GetInterfaceIndices(interfaceName string) ([]uint32, error)

GetInterfaceIndices return one or more interface index based on the interface type Note: for bond interfaces we attach XDP to the bond interface but the xdp packets will be using bond member's interface_indices not the bond interface_index.

func GetInterfacesWithXDPAttached

func GetInterfacesWithXDPAttached() ([]string, error)

GetInterfacesWithXDPAttached with XDP attached

func IsValidInterfaceNameAndState

func IsValidInterfaceNameAndState(ifName string) bool

IsValidInterfaceNameAndState check if interface name is valid, interface state is UP and its not loopback interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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