kernel

package
v0.0.0-...-8fa78e2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTAP

func CreateTAP(name string) (int, error)

CreateTAP creates kernel TAP interface.

func DeleteInterfaceIP

func DeleteInterfaceIP(name string, ip *net.IPNet) error

DeleteInterfaceIP delete an IP addresses from a network interface.

func SetInterfaceHWAddr

func SetInterfaceHWAddr(name string, addr string) error

SetInterfaceHWAddr sets the MAC address of a network interface.

func SetInterfaceIP

func SetInterfaceIP(name string, ip string, prefixLen int) error

SetInterfaceIP sets the IP addresses of a network interface.

func SetInterfaceState

func SetInterfaceState(name string, up bool) error

SetInterfaceState sets a links up or down.

Types

This section is empty.

Jump to

Keyboard shortcuts

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