ethtool

package
v0.0.0-...-71b87c0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(iface string, field string, enable bool) ([]byte, error)

Set sets the offloading attribute of an interface.

Types

type OffloadAttributes

type OffloadAttributes struct {
	Active    *bool `json:"active"`
	Fixed     *bool `json:"fixed"`
	Requested *bool `json:"requested"`
}

func (OffloadAttributes) Equals

type OffloadList

type OffloadList map[string]OffloadAttributes

func List

func List(iface string) (OffloadList, error)

List lists the offloading attributes of an interfaces.

func (OffloadList) Equals

func (o OffloadList) Equals(b OffloadList) bool

Jump to

Keyboard shortcuts

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