From 5af6ce541f744d56d800d1810cfa41c7f95869b6 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Tue, 16 Aug 2011 17:28:16 -0400 Subject: [PATCH] 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 --- src/pkg/net/Makefile | 4 +++- src/pkg/net/interface_openbsd.go | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/pkg/net/interface_openbsd.go 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 +} -- 2.50.0