25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
578 B

  1. // Copyright 2016 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 darwin dragonfly freebsd netbsd openbsd
  5. package nettest
  6. import (
  7. "runtime"
  8. )
  9. func supportsIPv6MulticastDeliveryOnLoopback() bool {
  10. switch runtime.GOOS {
  11. case "freebsd":
  12. // See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
  13. // Even after the fix, it looks like the latest
  14. // kernels don't deliver link-local scoped multicast
  15. // packets correctly.
  16. return false
  17. default:
  18. return true
  19. }
  20. }