aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@google.com>2011-08-16 17:28:16 -0400
committerRuss Cox <rsc@golang.org>2011-08-16 17:28:16 -0400
commit5af6ce541f744d56d800d1810cfa41c7f95869b6 (patch)
treef3a9e114f4c4a66964ed77c39d4ba5d13e5db9b7
parent1bc245181e8366edba72563737df2df0f599219e (diff)
downloadgo-5af6ce541f744d56d800d1810cfa41c7f95869b6.tar.gz
go-5af6ce541f744d56d800d1810cfa41c7f95869b6.zip
net: add multicast stubs for openbsd
Add multicast stubs and sync with recent changes. R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/4838058
-rw-r--r--src/pkg/net/Makefile4
-rw-r--r--src/pkg/net/interface_openbsd.go16
2 files changed, 19 insertions, 1 deletions
diff --git a/src/pkg/net/Makefile b/src/pkg/net/Makefile
index cc895f7568..8e634d6a56 100644
--- a/src/pkg/net/Makefile
+++ b/src/pkg/net/Makefile
@@ -86,11 +86,13 @@ GOFILES_linux+=cgo_stub.go
endif
GOFILES_openbsd=\
- dnsclient.go\
+ dnsclient_unix.go\
dnsconfig.go\
fd.go\
file.go\
interface_bsd.go\
+ interface_openbsd.go\
+ lookup_unix.go\
newpollserver.go\
port.go\
sendfile_stub.go\
diff --git a/src/pkg/net/interface_openbsd.go b/src/pkg/net/interface_openbsd.go
new file mode 100644
index 0000000000..f18149393a
--- /dev/null
+++ b/src/pkg/net/interface_openbsd.go
@@ -0,0 +1,16 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Network interface identification for OpenBSD
+
+package net
+
+import "os"
+
+// If the ifindex is zero, interfaceMulticastAddrTable returns
+// addresses for all network interfaces. Otherwise it returns
+// addresses for a specific interface.
+func interfaceMulticastAddrTable(ifindex int) ([]Addr, os.Error) {
+ return nil, nil
+}