Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetworkSetup ¶
func NetworkSetup(dhcpIfaces *[]DHCPInterface) error
func RunDHCP ¶
func RunDHCP(dhcpIface *DHCPInterface) error
func RunVM ¶
func RunVM(md *vmmd.VMMetadata, dhcpIfaces *[]DHCPInterface) error
Types ¶
type DHCPInterface ¶
type DHCPInterface struct { VMIPNet *net.IPNet GatewayIP *net.IP VMTAP string Bridge string Hostname string MACFilter string // contains filtered or unexported fields }
func (*DHCPInterface) ServeDHCP ¶
func (i *DHCPInterface) ServeDHCP(p dhcp.Packet, msgType dhcp.MessageType, options dhcp.Options) dhcp.Packet
func (*DHCPInterface) SetDNSServers ¶
func (i *DHCPInterface) SetDNSServers(dns []string)
Parse the DNS servers for the DHCP server
Click to show internal directories.
Click to hide internal directories.