rtnllink

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 4 Imported by: 5

README

go-rtnllink provides a rtnetlink library about network interface for Go.

License

This software is released under the MIT License, see LICENSE

Documentation

Index

Constants

View Source
const (
	IFLA_INFO_UNSPEC = iota
	IFLA_INFO_KIND
	IFLA_INFO_DATA
)
View Source
const (
	VETH_INFO_UNSPEC = iota
	VETH_INFO_PEER
)

Variables

This section is empty.

Functions

func Create

func Create(c *nl.Client, ifname string, attrs ...*nl.Attr) error

func Down

func Down(c *nl.Client, ifname string) error

func NativeEndian

func NativeEndian() binary.ByteOrder

func Remove

func Remove(c *nl.Client, ifname string) error

func Up

func Up(c *nl.Client, ifname string) error

Types

type IfInfomsg

type IfInfomsg syscall.IfInfomsg

func (IfInfomsg) Encode

func (m IfInfomsg) Encode(b []byte) (int, error)

func (IfInfomsg) Len

func (m IfInfomsg) Len() int

Jump to

Keyboard shortcuts

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