]> Cypherpunks repositories - gostls13.git/commitdiff
net: display the complete BUGS section on every platform
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 27 Dec 2016 21:14:01 +0000 (06:14 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 6 Jan 2017 00:04:24 +0000 (00:04 +0000)
We cannot assume that the platform running documentation service is
the target platform.

Change-Id: I241ed6f8778169faac9ef49e11dcd40f7422cccc
Reviewed-on: https://go-review.googlesource.com/34750
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/iprawsock.go
src/net/iprawsock_posix.go
src/net/ipsock.go
src/net/ipsock_posix.go

index b3cc03e00d46f4478a4cddaea0dcc0b2181084b7..8d84135336a61fac05a56fac4dfd7fe20c2576bf 100644 (file)
@@ -9,6 +9,18 @@ import (
        "syscall"
 )
 
+// BUG(mikio): On every POSIX platform, reads from the "ip4" network
+// using the ReadFrom or ReadFromIP method might not return a complete
+// IPv4 packet, including its header, even if there is space
+// available. This can occur even in cases where Read or ReadMsgIP
+// could return a complete packet. For this reason, it is recommended
+// that you do not uses these methods if it is important to receive a
+// full packet.
+//
+// The Go 1 compatibility guidelines make it impossible for us to
+// change the behavior of these methods; use Read or ReadMsgIP
+// instead.
+
 // BUG(mikio): On NaCl, Plan 9 and Windows, the ReadMsgIP and
 // WriteMsgIP methods of IPConn are not implemented.
 
index d5e229fb9cf6dd910108c906df97a5f12ad80a49..8f4b702e480624c340ac96714abab84f15c0d707 100644 (file)
@@ -11,18 +11,6 @@ import (
        "syscall"
 )
 
-// BUG(mikio): On every POSIX platform, reads from the "ip4" network
-// using the ReadFrom or ReadFromIP method might not return a complete
-// IPv4 packet, including its header, even if there is space
-// available. This can occur even in cases where Read or ReadMsgIP
-// could return a complete packet. For this reason, it is recommended
-// that you do not uses these methods if it is important to receive a
-// full packet.
-//
-// The Go 1 compatibility guidelines make it impossible for us to
-// change the behavior of these methods; use Read or ReadMsgIP
-// instead.
-
 func sockaddrToIP(sa syscall.Sockaddr) Addr {
        switch sa := sa.(type) {
        case *syscall.SockaddrInet4:
index c91e2017d412e5c03d86aa64af41484d7712180a..f1394a7ed87fc427f0bb03e067c16178916b7250 100644 (file)
@@ -10,6 +10,13 @@ import (
        "context"
 )
 
+// BUG(rsc,mikio): On DragonFly BSD and OpenBSD, listening on the
+// "tcp" and "udp" networks does not listen for both IPv4 and IPv6
+// connections. This is due to the fact that IPv4 traffic will not be
+// routed to an IPv6 socket - two separate sockets are required if
+// both address families are to be supported.
+// See inet6(4) for details.
+
 var (
        // supportsIPv4 reports whether the platform supports IPv4
        // networking functionality.
index f4fab3f9aa3436889dd2136674e42c63840f93ed..ff280c3e4e84e8adc7f8319c94bda916df00a645 100644 (file)
@@ -12,13 +12,6 @@ import (
        "syscall"
 )
 
-// BUG(rsc,mikio): On DragonFly BSD and OpenBSD, listening on the
-// "tcp" and "udp" networks does not listen for both IPv4 and IPv6
-// connections. This is due to the fact that IPv4 traffic will not be
-// routed to an IPv6 socket - two separate sockets are required if
-// both address families are to be supported.
-// See inet6(4) for details.
-
 func probeIPv4Stack() bool {
        s, err := socketFunc(syscall.AF_INET, syscall.SOCK_STREAM, syscall.IPPROTO_TCP)
        switch err {