From 3c83bcfe69e24ab37eb2a92285d7030d6163855a Mon Sep 17 00:00:00 2001 From: Siyuan Date: Tue, 7 Oct 2025 17:50:29 +0000 Subject: [PATCH] add missing dhcp client methods --- internal/network/types/dhcp.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 internal/network/types/dhcp.go diff --git a/internal/network/types/dhcp.go b/internal/network/types/dhcp.go new file mode 100644 index 00000000..5607849b --- /dev/null +++ b/internal/network/types/dhcp.go @@ -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 +}