2021-05-21 12:55:42 +01:00
|
|
|
//go:build windows
|
2021-06-15 17:42:41 +01:00
|
|
|
// +build windows
|
2021-05-21 12:55:42 +01:00
|
|
|
|
2020-07-03 16:20:01 +01:00
|
|
|
package dhcpd
|
|
|
|
|
|
|
|
// 'u-root/u-root' package, a dependency of 'insomniacslk/dhcp' package, doesn't build on Windows
|
|
|
|
|
|
|
|
import "net"
|
|
|
|
|
2020-12-07 12:38:05 +00:00
|
|
|
type winServer struct{}
|
2020-07-03 16:20:01 +01:00
|
|
|
|
2021-06-16 14:48:46 +01:00
|
|
|
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 }
|