diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2013-12-03 09:43:15 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@debian.org> | 2013-12-03 09:43:15 +0100 |
commit | 64d2a7c8945ba05af859901f5e248f1befdd8621 (patch) | |
tree | 013fcb7e9e3296ecdda876012252c36bd6bcb063 /src/pkg/net/ipsock_plan9.go | |
parent | b901efe83e212f0c34c769c079e41373da12d723 (diff) | |
download | golang-64d2a7c8945ba05af859901f5e248f1befdd8621.tar.gz |
Imported Upstream version 1.2upstream/1.2
Diffstat (limited to 'src/pkg/net/ipsock_plan9.go')
-rw-r--r-- | src/pkg/net/ipsock_plan9.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pkg/net/ipsock_plan9.go b/src/pkg/net/ipsock_plan9.go index c7d542dab..fcec4164f 100644 --- a/src/pkg/net/ipsock_plan9.go +++ b/src/pkg/net/ipsock_plan9.go @@ -12,13 +12,18 @@ import ( "syscall" ) -// /sys/include/ape/sys/socket.h:/SOMAXCONN -var listenerBacklog = 5 +func probeIPv4Stack() bool { + // TODO(mikio): implement this when Plan 9 supports IPv6-only + // kernel. + return true +} // probeIPv6Stack returns two boolean values. If the first boolean // value is true, kernel supports basic IPv6 functionality. If the // second boolean value is true, kernel supports IPv6 IPv4-mapping. func probeIPv6Stack() (supportsIPv6, supportsIPv4map bool) { + // TODO(mikio): implement this once Plan 9 gets an IPv6 + // protocol stack implementation. return false, false } |