Versions in this module Expand all Collapse all v1 v1.0.5 Feb 26, 2025 Changes in this version + var AllDHCPRelayAgentsAndServers = &net.UDPAddr + var AllDHCPServers = &net.UDPAddr + var ErrNoResponse = errors.New("no matching response packet received") + func NewIPv6UDPConn(iface string, port int) (net.PacketConn, error) + func WithIAPD(iaid [4]byte, prefix *dhcpv6.OptIAPrefix) dhcpv6.Modifier + type Client struct + func New(iface string, opts ...ClientOpt) (*Client, error) + func NewWithConn(conn net.PacketConn, ifaceHWAddr net.HardwareAddr, opts ...ClientOpt) (*Client, error) + func (c *Client) Close() error + func (c *Client) InterfaceAddr() net.HardwareAddr + func (c *Client) PrintMessage(prefix string, message *dhcpv6.Message) + func (c *Client) Printf(format string, v ...any) + func (c *Client) RapidSolicit(ctx context.Context, modifiers ...dhcpv6.Modifier) (*dhcpv6.Message, error) + func (c *Client) RemoteAddr() *net.UDPAddr + func (c *Client) Request(ctx context.Context, advertise *dhcpv6.Message, modifiers ...dhcpv6.Modifier) (*dhcpv6.Message, error) + func (c *Client) SendAndRead(ctx context.Context, dest *net.UDPAddr, msg *dhcpv6.Message, match Matcher) (*dhcpv6.Message, error) + func (c *Client) Solicit(ctx context.Context, modifiers ...dhcpv6.Modifier) (*dhcpv6.Message, error) + type ClientOpt func(*Client) + func WithBroadcastAddr(n *net.UDPAddr) ClientOpt + func WithConn(conn net.PacketConn) ClientOpt + func WithDebugLogger() ClientOpt + func WithLogDroppedPackets() ClientOpt + func WithLogger(logger Logger) ClientOpt + func WithRetry(r int) ClientOpt + func WithSummaryLogger() ClientOpt + func WithTimeout(d time.Duration) ClientOpt + type Logger interface + PrintMessage func(prefix string, message *dhcpv6.Message) + Printf func(format string, v ...any) + type Matcher func(*dhcpv6.Message) bool + func IsMessageType(t dhcpv6.MessageType, tt ...dhcpv6.MessageType) Matcher