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
This commit is contained in:
Joel Sing 2011-08-16 17:28:16 -04:00 committed by Russ Cox
parent 1bc245181e
commit 5af6ce541f
2 changed files with 19 additions and 1 deletions

View 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\

View file

@ -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
}