1 // Copyright 2017 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
24 func probeProtocolStack() int {
25 switch runtime.GOARCH {
26 case "amd64p32", "mips64p32":
30 return int(unsafe.Sizeof(p))
34 func marshalInetAddr(ip net.IP, port int, zone string) []byte {
38 func parseInetAddr(b []byte, network string) (net.Addr, error) {
39 return nil, errors.New("not implemented")
42 func getsockopt(s uintptr, level, name int, b []byte) (int, error) {
43 return 0, errors.New("not implemented")
46 func setsockopt(s uintptr, level, name int, b []byte) error {
47 return errors.New("not implemented")
50 func recvmsg(s uintptr, h *msghdr, flags int) (int, error) {
51 return 0, errors.New("not implemented")
54 func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
55 return 0, errors.New("not implemented")
58 func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
59 return 0, errors.New("not implemented")
62 func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
63 return 0, errors.New("not implemented")