blob: a154f7c8d5827ab25e205cebfe4f1f72d2df016b [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
billofarrell146b70c2020-10-21 17:25:16 -04006// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
Mikio Hara63eda1e2018-07-11 01:05:18 +09007
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}