2020-12-07 12:38:05 +00:00
|
|
|
// +build windows
|
|
|
|
|
2021-05-21 12:55:42 +01:00
|
|
|
//go:build windows
|
|
|
|
|
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
|
|
|
|
2020-11-25 11:26:26 +00:00
|
|
|
func (s *winServer) ResetLeases(leases []*Lease) {}
|
|
|
|
func (s *winServer) GetLeases(flags int) []Lease { return nil }
|
2021-03-18 14:07:13 +00:00
|
|
|
func (s *winServer) getLeasesRef() []*Lease { return nil }
|
2020-11-25 11:26:26 +00:00
|
|
|
func (s *winServer) AddStaticLease(lease Lease) error { return nil }
|
|
|
|
func (s *winServer) RemoveStaticLease(l Lease) error { return nil }
|
|
|
|
func (s *winServer) FindMACbyIP(ip net.IP) net.HardwareAddr { return nil }
|
|
|
|
func (s *winServer) WriteDiskConfig4(c *V4ServerConf) {}
|
|
|
|
func (s *winServer) WriteDiskConfig6(c *V6ServerConf) {}
|
|
|
|
func (s *winServer) Start() error { return nil }
|
|
|
|
func (s *winServer) Stop() {}
|
|
|
|
func (s *winServer) Reset() {}
|
|
|
|
func v4Create(conf V4ServerConf) (DHCPServer, error) { return &winServer{}, nil }
|
|
|
|
func v6Create(conf V6ServerConf) (DHCPServer, error) { return &winServer{}, nil }
|