add missing dhcp client methods

This commit is contained in:
Siyuan 2025-10-07 17:50:29 +00:00
parent 50469c1fb6
commit 3c83bcfe69
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package types
// DHCPClient is the interface for a DHCP client.
type DHCPClient interface {
Domain() string
Lease4() *DHCPLease
Lease6() *DHCPLease
Renew() error
Release() error
SetIPv4(enabled bool)
SetIPv6(enabled bool)
SetOnLeaseChange(callback func(lease *DHCPLease))
Start() error
Stop() error
}