server

package
v0.0.0-...-45d97a2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements a DHCP server.

func NewServer

func NewServer(
	vmregClient vmregistrypb.VMRegistryClient,
	serverIP net.IP,
	subnet net.IPMask,
	gateway net.IP,
	dns net.IP,
	domainName string) Server

NewServer creates a new server.

func (Server) ServeDHCP

func (s Server) ServeDHCP(req dhcp.Packet, msgType dhcp.MessageType, options dhcp.Options) dhcp.Packet

ServeDHCP handles incoming dhcp requests.

Jump to

Keyboard shortcuts

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