2021-05-21 14:55:42 +03:00
|
|
|
//go:build windows
|
|
|
|
|
2020-07-03 18:20:01 +03:00
|
|
|
package dhcpd
|
|
|
|
|
|
|
|
// 'u-root/u-root' package, a dependency of 'insomniacslk/dhcp' package, doesn't build on Windows
|
|
|
|
|
2023-03-01 13:27:24 +03:00
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
"net/netip"
|
2023-11-16 14:14:40 +03:00
|
|
|
|
|
|
|
"github.com/AdguardTeam/AdGuardHome/internal/dhcpsvc"
|
2023-03-01 13:27:24 +03:00
|
|
|
)
|
2020-07-03 18:20:01 +03:00
|
|
|
|
2020-12-07 15:38:05 +03:00
|
|
|
type winServer struct{}
|
2020-07-03 18:20:01 +03:00
|
|
|
|
2022-09-13 23:45:35 +03:00
|
|
|
// type check
|
|
|
|
var _ DHCPServer = winServer{}
|
|
|
|
|
2023-11-16 14:14:40 +03:00
|
|
|
func (winServer) ResetLeases(_ []*dhcpsvc.Lease) (err error) { return nil }
|
|
|
|
func (winServer) GetLeases(_ GetLeasesFlags) (leases []*dhcpsvc.Lease) { return nil }
|
|
|
|
func (winServer) getLeasesRef() []*dhcpsvc.Lease { return nil }
|
|
|
|
func (winServer) AddStaticLease(_ *dhcpsvc.Lease) (err error) { return nil }
|
|
|
|
func (winServer) RemoveStaticLease(_ *dhcpsvc.Lease) (err error) { return nil }
|
|
|
|
func (winServer) UpdateStaticLease(_ *dhcpsvc.Lease) (err error) { return nil }
|
|
|
|
func (winServer) FindMACbyIP(_ netip.Addr) (mac net.HardwareAddr) { return nil }
|
|
|
|
func (winServer) WriteDiskConfig4(_ *V4ServerConf) {}
|
|
|
|
func (winServer) WriteDiskConfig6(_ *V6ServerConf) {}
|
|
|
|
func (winServer) Start() (err error) { return nil }
|
|
|
|
func (winServer) Stop() (err error) { return nil }
|
|
|
|
func (winServer) HostByIP(_ netip.Addr) (host string) { return "" }
|
|
|
|
func (winServer) IPByHost(_ string) (ip netip.Addr) { return netip.Addr{} }
|
2022-09-13 23:45:35 +03:00
|
|
|
|
|
|
|
func v4Create(_ *V4ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|
|
|
|
func v6Create(_ V6ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|