mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-05 01:37:42 +03:00
25918e56fa
Squashed commit of the following: commit 284190f748345c7556e60b67f051ec5f6f080948 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Dec 6 19:36:00 2023 +0300 all: sync with master; upd chlog
34 lines
1.5 KiB
Go
34 lines
1.5 KiB
Go
//go:build windows
|
|
|
|
package dhcpd
|
|
|
|
// 'u-root/u-root' package, a dependency of 'insomniacslk/dhcp' package, doesn't build on Windows
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
|
|
"github.com/AdguardTeam/AdGuardHome/internal/dhcpsvc"
|
|
)
|
|
|
|
type winServer struct{}
|
|
|
|
// type check
|
|
var _ DHCPServer = winServer{}
|
|
|
|
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{} }
|
|
|
|
func v4Create(_ *V4ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|
|
func v6Create(_ V6ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|