84e71e912e
Updates #1691. Squashed commit of the following: commit 2ce6cc005d09ac7d63e4e575705d86e92046697f Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Jun 16 16:42:57 2021 +0300 dhcp: imp code commit 8f2bd7048d864e10aaed9e7338c0bbe852699a31 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Jun 16 16:27:06 2021 +0300 dhcpd: add purge, imp code
24 lines
1.1 KiB
Go
24 lines
1.1 KiB
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package dhcpd
|
|
|
|
// 'u-root/u-root' package, a dependency of 'insomniacslk/dhcp' package, doesn't build on Windows
|
|
|
|
import "net"
|
|
|
|
type winServer struct{}
|
|
|
|
func (s *winServer) ResetLeases(_ []*Lease) (err error) { return nil }
|
|
func (s *winServer) GetLeases(_ GetLeasesFlags) (leases []*Lease) { return nil }
|
|
func (s *winServer) getLeasesRef() []*Lease { return nil }
|
|
func (s *winServer) AddStaticLease(_ *Lease) (err error) { return nil }
|
|
func (s *winServer) RemoveStaticLease(_ *Lease) (err error) { return nil }
|
|
func (s *winServer) FindMACbyIP(ip net.IP) (mac net.HardwareAddr) { return nil }
|
|
func (s *winServer) WriteDiskConfig4(c *V4ServerConf) {}
|
|
func (s *winServer) WriteDiskConfig6(c *V6ServerConf) {}
|
|
func (s *winServer) Start() (err error) { return nil }
|
|
func (s *winServer) Stop() (err error) { return nil }
|
|
func v4Create(conf V4ServerConf) (DHCPServer, error) { return &winServer{}, nil }
|
|
func v6Create(conf V6ServerConf) (DHCPServer, error) { return &winServer{}, nil }
|