diff options
author | Erik G <erik.geiser@posteo.net> | 2021-06-21 15:02:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 14:02:08 +0100 |
commit | 1cac67f12b1e213c50139310d4490dd3a4e6cce6 (patch) | |
tree | 9caaa2aaa51b1e5b971f038f34d70b7e0bc476ca /dhcpv6 | |
parent | 465dd6c35f6c983206a5bc21fbfff4819ce21eb0 (diff) |
Make server6 package compile on Windows (#431)
Signed-off-by: Erik G <erik.geiser@netaachen.de>
Diffstat (limited to 'dhcpv6')
-rw-r--r-- | dhcpv6/server6/conn_unix.go (renamed from dhcpv6/server6/conn.go) | 2 | ||||
-rw-r--r-- | dhcpv6/server6/conn_windows.go | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/dhcpv6/server6/conn.go b/dhcpv6/server6/conn_unix.go index cbf72b4..fd45ce4 100644 --- a/dhcpv6/server6/conn.go +++ b/dhcpv6/server6/conn_unix.go @@ -1,3 +1,5 @@ +// +build !windows + package server6 import ( diff --git a/dhcpv6/server6/conn_windows.go b/dhcpv6/server6/conn_windows.go new file mode 100644 index 0000000..b0f97b3 --- /dev/null +++ b/dhcpv6/server6/conn_windows.go @@ -0,0 +1,13 @@ +// +build windows + +package server6 + +import ( + "errors" + "net" +) + +// NewIPv6UDPConn fails on Windows. Use WithConn() to pass the connection. +func NewIPv6UDPConn(iface string, addr *net.UDPAddr) (*net.UDPConn, error) { + return nil, errors.New("not implemented on Windows") +} |