dhcp4

package
v0.0.0-...-e917273 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Iface   string         `yaml:"iface"`
	HwAddr  HwAddr         `yaml:"hwAddr,inline"`
	Retry   *int           `yaml:"retry,omitempty"`
	Timeout *time.Duration `yaml:"timeout,omitempty"`
}

Config is used for configuring DHCP4 client.

type HwAddr

type HwAddr struct {
	Addr net.HardwareAddr
}

HwAddr is a hardware address.

func (*HwAddr) MarshalYAML

func (a *HwAddr) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml marshal interface.

func (*HwAddr) UnmarshalYAML

func (a *HwAddr) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the yaml unmarshal interface.

Jump to

Keyboard shortcuts

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