update packaging
[platform/core/system/edge-orchestration.git] / vendor / golang.org / x / net / internal / nettest / helper_bsd.go
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
5 // +build darwin dragonfly freebsd netbsd openbsd
6
7 package nettest
8
9 import (
10         "runtime"
11 )
12
13 func supportsIPv6MulticastDeliveryOnLoopback() bool {
14         switch runtime.GOOS {
15         case "freebsd":
16                 // See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
17                 // Even after the fix, it looks like the latest
18                 // kernels don't deliver link-local scoped multicast
19                 // packets correctly.
20                 return false
21         default:
22                 return true
23         }
24 }