iface

package
v0.0.0-...-e890a9a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLinkLocalMAC

func IsLinkLocalMAC(addr []byte, hw []byte) bool

Types

type Iface

type Iface struct {
	Name    string
	MAC     net.HardwareAddr
	Mode    Mode
	IPv4    []net.IP
	IPv6    []net.IP
	Gateway []net.IP
	DNS     []net.IP
}

func (Iface) AddIP

func (i Iface) AddIP(cidr string) error

func (Iface) SetLinkDown

func (i Iface) SetLinkDown() error

func (Iface) SetLinkUp

func (i Iface) SetLinkUp() error

type Mode

type Mode int
const (
	ModeDHCP Mode = iota
	ModeStatic
)

Jump to

Keyboard shortcuts

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