1// Copyright 2015 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 8package ipv6_test 9 10import ( 11 "fmt" 12 "runtime" 13) 14 15func supportsIPv6MulticastDeliveryOnLoopback() (string, bool) { 16 switch runtime.GOOS { 17 case "freebsd": 18 // See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065. 19 // Even after the fix, it looks like the latest 20 // kernels don't deliver link-local scoped multicast 21 // packets correctly. 22 return fmt.Sprintf("not supported on %s/%s", runtime.GOOS, runtime.GOARCH), false 23 default: 24 return "", true 25 } 26} 27