From: Mikio Hara Date: Tue, 28 Feb 2012 01:58:01 +0000 (+0900) Subject: net: no panic on placeholders for netbsd X-Git-Tag: weekly.2012-03-04~117 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d9c5626047f0b3d580be1bc786557c261c7e1559;p=gostls13.git net: no panic on placeholders for netbsd Perhaps it might be better than panic. R=golang-dev, r CC=golang-dev https://golang.org/cl/5701064 --- diff --git a/src/pkg/net/sockoptip_netbsd.go b/src/pkg/net/sockoptip_netbsd.go index ccb9697cfb..446d92aa34 100644 --- a/src/pkg/net/sockoptip_netbsd.go +++ b/src/pkg/net/sockoptip_netbsd.go @@ -2,14 +2,38 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build netbsd +// IP-level socket options for NetBSD package net +import "syscall" + +func ipv4MulticastInterface(fd *netFD) (*Interface, error) { + // TODO: Implement this + return nil, syscall.EAFNOSUPPORT +} + func setIPv4MulticastInterface(fd *netFD, ifi *Interface) error { - panic("unimplemented") + // TODO: Implement this + return syscall.EAFNOSUPPORT +} + +func ipv4MulticastLoopback(fd *netFD) (bool, error) { + // TODO: Implement this + return false, syscall.EAFNOSUPPORT } func setIPv4MulticastLoopback(fd *netFD, v bool) error { - panic("unimplemented") + // TODO: Implement this + return syscall.EAFNOSUPPORT +} + +func ipv4ReceiveInterface(fd *netFD) (bool, error) { + // TODO: Implement this + return false, syscall.EAFNOSUPPORT +} + +func setIPv4ReceiveInterface(fd *netFD, v bool) error { + // TODO: Implement this + return syscall.EAFNOSUPPORT }