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 darwin dragonfly freebsd linux netbsd openbsd solaris windows
14 func protocolNotSupported(err error) bool {
15 switch err := err.(type) {
18 case syscall.EPROTONOSUPPORT, syscall.ENOPROTOOPT:
21 case *os.SyscallError:
22 switch err := err.Err.(type) {
25 case syscall.EPROTONOSUPPORT, syscall.ENOPROTOOPT: