blob: c2459e320eb99cd44af7ad8d419aa56357749c6d [file] [log] [blame]
Mikio Hara63eda1e2018-07-11 01:05:18 +09001// 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
Russ Cox5f55cee2021-02-19 18:54:43 -05005//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
Mikio Hara63eda1e2018-07-11 01:05:18 +09006
7package ipv6_test
8
9import (
10 "fmt"
11 "runtime"
12)
13
14func supportsIPv6MulticastDeliveryOnLoopback() (string, bool) {
15 switch runtime.GOOS {
16 case "freebsd":
17 // See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
18 // Even after the fix, it looks like the latest
19 // kernels don't deliver link-local scoped multicast
20 // packets correctly.
21 return fmt.Sprintf("not supported on %s/%s", runtime.GOOS, runtime.GOARCH), false
Ian Lance Taylorfe8b9692021-11-22 18:16:19 -080022 case "openbsd":
23 // Multicast packets don't seem to be delivered locally.
24 // Issue 42064.
25 return fmt.Sprintf("not supported on %s/%s", runtime.GOOS, runtime.GOARCH), false
Mikio Hara63eda1e2018-07-11 01:05:18 +090026 default:
27 return "", true
28 }
29}