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
|
|
|
|
|
2023-03-01 10:27:24 +00:00
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
"net/netip"
|
|
|
|
)
|
2020-07-03 16:20:01 +01:00
|
|
|
|
2020-12-07 12:38:05 +00:00
|
|
|
type winServer struct{}
|
2020-07-03 16:20:01 +01:00
|
|
|
|
2022-09-13 21:45:35 +01:00
|
|
|
// type check
|
|
|
|
var _ DHCPServer = winServer{}
|
|
|
|
|
2023-03-01 10:27:24 +00:00
|
|
|
func (winServer) ResetLeases(_ []*Lease) (err error) { return nil }
|
|
|
|
func (winServer) GetLeases(_ GetLeasesFlags) (leases []*Lease) { return nil }
|
|
|
|
func (winServer) getLeasesRef() []*Lease { return nil }
|
|
|
|
func (winServer) AddStaticLease(_ *Lease) (err error) { return nil }
|
|
|
|
func (winServer) RemoveStaticLease(_ *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 }
|
2022-09-13 21:45:35 +01:00
|
|
|
|
|
|
|
func v4Create(_ *V4ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|
|
|
|
func v6Create(_ V6ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|