package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Functions

MakeBroadcastSocket creates a socket that can be passed to unix.Sendto that will send packets out to the broadcast address.
MakeListeningSocket creates a listening socket on 0.0.0.0 for the DHCP client port and returns it.
MakeRawUDPPacket converts a payload (a serialized DHCPv4 packet) into a raw UDP packet for the specified serverAddr from the specified clientAddr.
NewClient generates a new client to perform a DHCP exchange with, setting the read and write timeout fields to defaults.

# Constants

MaxUDPReceivedPacketSize is the (arbitrary) maximum UDP packet size supported by this library.

# Variables

DefaultReadTimeout is the time to wait after listening in which the exchange is considered failed.
DefaultWriteTimeout is the time to wait after sending in which the exchange is considered failed.

# Structs

Client is the object that actually performs the DHCP exchange.