iproute

package
v0.0.0-...-f021cd2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAddresses

func DeleteAddresses(index int) error

DeleteAddresses removes all IP addresses of an interface.

func NewIPIP

func NewIPIP(baseIndex int) (int, error)

NewIPIP creates an IPIP interface using the base interface to derive the tunnel's MTU.

func RemoveInterface

func RemoveInterface(index int) error

RemoveInterface removes an interface.

func Set

func Set(index int, up bool) error

Set sets the interface up or down.

func SetAddress

func SetAddress(index int, cidr *net.IPNet) error

SetAddress sets the IP address of an interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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