]> Cypherpunks repositories - gostls13.git/commitdiff
net: add multicast stubs for openbsd
authorJoel Sing <jsing@google.com>
Tue, 16 Aug 2011 21:28:16 +0000 (17:28 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 16 Aug 2011 21:28:16 +0000 (17:28 -0400)
Add multicast stubs and sync with recent changes.

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/4838058

src/pkg/net/Makefile
src/pkg/net/interface_openbsd.go [new file with mode: 0644]

index cc895f75680bb12d834b49a2a99f7dbf2ce3041f..8e634d6a56cb7cd68642d7a81fc24b62f808b18f 100644 (file)
@@ -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 (file)
index 0000000..f181493
--- /dev/null
@@ -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
+}