tc

package
v0.54.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Impairments

func Impairments(tcnl *tc.Tc) ([]tc.Object, error)

Impairments returns all link impairments of a node.

func NewTC

func NewTC(ns int) (*tc.Tc, error)

NewTC returns a new tc client opened for a given network namespace. Must be closed after use.

func SetImpairments

func SetImpairments(tcnl *tc.Tc, nodeName string, link *net.Interface, delay, jitter time.Duration, loss float64, rate uint64) (*tc.Object, error)

SetImpairments sets the impairments on the given interface of a node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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