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 ¶
MarshalYAML implements the yaml marshal interface.
func (*HwAddr) UnmarshalYAML ¶
UnmarshalYAML implements the yaml unmarshal interface.
Click to show internal directories.
Click to hide internal directories.