Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHCPConfig ¶
type DHCPConfig struct { ServerUUID string `yaml:"server_uuid"` ReservationDuration string `yaml:"reservation_duration"` LeaseDuration string `yaml:"lease_duration"` T1Duration string `yaml:"t1_duration"` T2Duration string `yaml:"t2_duration"` DefaultOptions struct { NextServer string `yaml:"next_server"` BootFileName string `yaml:"bootfile_name"` DomainName string `yaml:"domain_name"` DomainNameServers []string `yaml:"dns_servers"` NTPServers []string `yaml:"ntp_servers"` Routers []string `yaml:"routers"` } `yaml:"default_options"` }
func (DHCPConfig) ServerDUID ¶
func (d DHCPConfig) ServerDUID() ([]byte, error)
ServerDUID returns the server's DUID formatted according to https://tools.ietf.org/html/rfc6355#section-4
type DaemonConfig ¶
type DaemonConfig struct { Daemonize bool Log struct { Level string Path string } ListenV4 map[string]V4ListenerConfig `yaml:"listen_v4"` ListenV6 map[string]V6ListenerConfig `yaml:"listen_v6"` }
type V4ListenerConfig ¶
type V4ListenerConfig struct { ReplyFrom string `yaml:"reply_from"` ReplyHostname string `yaml:"reply_hostname"` }
func (*V4ListenerConfig) ReplyFromAddress ¶
func (v *V4ListenerConfig) ReplyFromAddress() net.IP
type V6ListenerConfig ¶
type V6ListenerConfig struct { AdvertiseUnicast bool `yaml:"advertise_unicast"` ListenTo []string `yaml:"listen_to"` ReplyFrom string `yaml:"reply_from"` }
func (*V6ListenerConfig) ListenToAddresses ¶
func (v *V6ListenerConfig) ListenToAddresses() []net.IP
func (*V6ListenerConfig) ReplyFromAddress ¶
func (v *V6ListenerConfig) ReplyFromAddress() net.IP
Click to show internal directories.
Click to hide internal directories.