diff options
author | Joel Sing <jsing@google.com> | 2011-08-16 17:28:16 -0400 |
---|---|---|
committer | Joel Sing <jsing@google.com> | 2011-08-16 17:28:16 -0400 |
commit | 05a21eb911ca4d4581d5d232d948b9da95d7bb47 (patch) | |
tree | ca4b2056d0941856f91ea06d0d202d9e2847b779 | |
parent | 9fabb41bb1bc95d4aeb93a9ad5e0d9e15b1441bc (diff) | |
download | go-05a21eb911ca4d4581d5d232d948b9da95d7bb47.tar.gz |
net: add multicast stubs for openbsd
Add multicast stubs and sync with recent changes.
R=golang-dev, mikioh.mikioh
CC=golang-dev
http://codereview.appspot.com/4838058
Committer: Russ Cox <rsc@golang.org>
-rw-r--r-- | src/pkg/net/Makefile | 4 | ||||
-rw-r--r-- | src/pkg/net/interface_openbsd.go | 16 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/pkg/net/Makefile b/src/pkg/net/Makefile index cc895f756..8e634d6a5 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 000000000..f18149393 --- /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 +} |