helper_unix_test.go 688 B

12345678910111213141516171819202122232425
  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. // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
  5. package ipv6_test
  6. import (
  7. "fmt"
  8. "runtime"
  9. )
  10. func supportsIPv6MulticastDeliveryOnLoopback() (string, bool) {
  11. switch runtime.GOOS {
  12. case "freebsd":
  13. // See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
  14. // Even after the fix, it looks like the latest
  15. // kernels don't deliver link-local scoped multicast
  16. // packets correctly.
  17. return fmt.Sprintf("not supported on %s/%s", runtime.GOOS, runtime.GOARCH), false
  18. default:
  19. return "", true
  20. }
  21. }