]> Cypherpunks repositories - gostls13.git/commitdiff
net: update document on limitation of iprawsock on Windows
authorAN Long <aisk1988@gmail.com>
Tue, 12 Aug 2025 12:36:54 +0000 (12:36 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 29 Aug 2025 16:56:14 +0000 (09:56 -0700)
Fixed: #23209

Change-Id: I3bfe9f5192cbacf387386efda72f04eeec5ff3be
GitHub-Last-Rev: 660a62d139dda21fcaea1e95394ca38521c7f00a
GitHub-Pull-Request: golang/go#74857
Reviewed-on: https://go-review.googlesource.com/c/go/+/692895
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>

src/net/iprawsock.go

index 80a80fef7d3e4a132af66f3b8f5b88d6ecbc308e..26134d7e76a2ecbaed85aa692d7d1de458ad193f 100644 (file)
@@ -25,6 +25,12 @@ import (
 // BUG(mikio): On JS and Plan 9, methods and functions related
 // to IPConn are not implemented.
 
+// BUG: On Windows, raw IP sockets are restricted by the operating system.
+// Sending TCP data, sending UDP data with invalid source addresses,
+// and calling bind with TCP protocol don't work.
+//
+// See Winsock reference for details.
+
 func ipAddrFromAddr(addr netip.Addr) *IPAddr {
        return &IPAddr{
                IP:   addr.AsSlice(),