dhcpd

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package dhcpd contains snippets from MIT-licensed coredhcp project at https://github.com/coredhcp/coredhcp

Package dhcpd contains snippets from MIT-licensed coredhcp project at https://github.com/coredhcp/coredhcp

Index

Constants

View Source
const MaxDatagram = 1 << 16

MaxDatagram is the maximum length of message that can be received.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	UdpConn *net.UDPConn
	*ipv4.PacketConn
	net.Interface
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr, ifname string, store *store.Store) (server *Server, err error)

func (*Server) HandleMsg4

func (server *Server) HandleMsg4(buf []byte, oob *ipv4.ControlMessage, peer net.Addr)

func (*Server) Serve

func (server *Server) Serve()

type Uint8

type Uint8 uint8

Uint8 mirrors dhcpv4.Uint16

func (*Uint8) FromBytes

func (o *Uint8) FromBytes(data []byte) error

FromBytes decodes data into o as per RFC 2132, Section 9.10.

func (Uint8) String

func (o Uint8) String() string

String returns a human-readable string for this option.

func (Uint8) ToBytes

func (o Uint8) ToBytes() []byte

ToBytes returns a serialized stream of bytes for this option.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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