libgo: update to Go 1.11
[official-gcc.git] / libgo / go / golang_org / x / net / internal / nettest / helper_stub.go
blobd729156de67fdf4cc7d25c311bee620e8ddb6a68
1 // Copyright 2014 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.
5 // +build js,wasm nacl plan9
7 package nettest
9 import (
10 "fmt"
11 "runtime"
14 func maxOpenFiles() int {
15 return defaultMaxOpenFiles
18 func supportsRawIPSocket() (string, bool) {
19 return fmt.Sprintf("not supported on %s", runtime.GOOS), false
22 func supportsIPv6MulticastDeliveryOnLoopback() bool {
23 return false
26 func causesIPv6Crash() bool {
27 return false
30 func protocolNotSupported(err error) bool {
31 return false