add DHCPv4 reset call

This commit is contained in:
soypat
2025-07-20 10:34:41 -03:00
parent d7d8aa0580
commit 2b79d0c512
+5
View File
@@ -69,6 +69,11 @@ type RequestConfig struct {
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 {
if len(cfg.Hostname) > 36 {
return errors.New("requested hostname too long")