mirror of
https://github.com/soypat/lneto.git
synced 2026-09-03 05:19:04 +00:00
add DHCPv4 reset call
This commit is contained in:
@@ -69,6 +69,11 @@ type RequestConfig struct {
|
|||||||
ClientID string
|
ClientID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset clears all DHCP state and disconnects from Stack (increments ConnectionID).
|
||||||
|
func (c *Client) Reset() {
|
||||||
|
c.reset(0)
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Client) BeginRequest(xid uint32, cfg RequestConfig) error {
|
func (c *Client) BeginRequest(xid uint32, cfg RequestConfig) error {
|
||||||
if len(cfg.Hostname) > 36 {
|
if len(cfg.Hostname) > 36 {
|
||||||
return errors.New("requested hostname too long")
|
return errors.New("requested hostname too long")
|
||||||
|
|||||||
Reference in New Issue
Block a user