aboutsummaryrefslogtreecommitdiff
path: root/src/net/iprawsock.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/iprawsock.go')
-rw-r--r--src/net/iprawsock.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/iprawsock.go b/src/net/iprawsock.go
index b3cc03e00d..d994fc67c6 100644
--- a/src/net/iprawsock.go
+++ b/src/net/iprawsock.go
@@ -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 use 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.