Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2018 Changes in this version + const ClientPort + const ServerPort + var AllServers = net.ParseIP("ff02::1:2") + var DefaultServers = &net.UDPAddr + func NewPacket(typ dhcp6.MessageType, opts dhcp6.Options) *dhcp6.Packet + func NewRapidSolicit(mac net.HardwareAddr) (*dhcp6.Packet, error) + func NewSolicitPacket(mac net.HardwareAddr) (*dhcp6.Packet, error) + func RequestIANAFrom(ad *dhcp6.Packet) (*dhcp6.Packet, error) + func SuitableReply(reqIANAs []*dhcp6opts.IANA, pkt *dhcp6.Packet) ([]*dhcp6opts.IANA, error) + type Client struct + func New(iface netlink.Link, opts ...ClientOpt) (*Client, error) + func (c *Client) RapidSolicit() (*dhcp6opts.IANA, *dhcp6.Packet, error) + func (c *Client) Request(request *dhcp6.Packet) ([]*dhcp6opts.IANA, *dhcp6.Packet, error) + func (c *Client) RequestOne(request *dhcp6.Packet) (*dhcp6opts.IANA, *dhcp6.Packet, error) + func (c *Client) SendAndRead(ctx context.Context, dest *net.UDPAddr, p *dhcp6.Packet, ...) + func (c *Client) SimpleSendAndRead(ctx context.Context, dest *net.UDPAddr, p *dhcp6.Packet) (*sync.WaitGroup, <-chan *ClientPacket, <-chan *ClientError) + func (c *Client) Solicit(ctx context.Context) ([]*dhcp6.Packet, error) + type ClientError struct + Err error + Interface netlink.Link + func (ce *ClientError) Error() string + type ClientOpt func(*Client) error + func WithRetry(retry int) ClientOpt + func WithTimeout(d time.Duration) ClientOpt + type ClientPacket struct + Interface netlink.Link + Packet *dhcp6.Packet Incompatible versions in this module v4.0.0+incompatible Jan 27, 2019 v3.0.0+incompatible Nov 21, 2018 v2.0.0+incompatible Oct 1, 2018