dhcp

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 10 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 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