summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
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.go13
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")
+}