iface

package
v0.0.0-...-0e93635 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushAllInterfaces

func FlushAllInterfaces() error

func GetAllInterfaceNames

func GetAllInterfaceNames() (list []string)

Types

type Interface

type Interface struct {
	Index        int
	Name         string
	MTU          int
	Addrs        []netip.Prefix
	Addrsv4      []netip.Prefix
	Addrsv6      []netip.Prefix
	HardwareAddr net.HardwareAddr
}

func GetAllInterfaces

func GetAllInterfaces() (list []*Interface)

func GetInterfaceByIndex

func GetInterfaceByIndex(index int) (*Interface, error)

func GetInterfaceByName

func GetInterfaceByName(name string) (*Interface, error)

Jump to

Keyboard shortcuts

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