dhcp

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: Apache-2.0 Imports: 9 Imported by: 4

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 that runs in the container network namespace.

func NewServer

func NewServer(config *network.ContainerSideNetwork) *Server

NewServer returns an initialized instance of Server.

func (*Server) Close

func (s *Server) Close() error

Close shuts down DHCP listener.

func (*Server) Serve

func (s *Server) Serve() error

Serve waits in an endless loop for DHCP requests and answers them.

func (*Server) SetupListener

func (s *Server) SetupListener(laddr string) error

SetupListener sets up a DHCP4 listener that listens on the default DHCP port and the specified IP address.

Jump to

Keyboard shortcuts

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