Mikio Hara | 63eda1e | 2018-07-11 01:05:18 +0900 | [diff] [blame] | 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 | |
Russ Cox | 5f55cee | 2021-02-19 18:54:43 -0500 | [diff] [blame] | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos |
billofarrell | 146b70c | 2020-10-21 17:25:16 -0400 | [diff] [blame] | 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos |
Mikio Hara | 63eda1e | 2018-07-11 01:05:18 +0900 | [diff] [blame] | 7 | |
| 8 | package ipv6_test |
| 9 | |
| 10 | import ( |
| 11 | "fmt" |
| 12 | "runtime" |
| 13 | ) |
| 14 | |
| 15 | func 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 | } |