This commit is contained in:
bluepython508 committed 2026-10-22 12:27:19 +01:00
1 parent 3530afb854
commit 6903fcff27
2146 files changed
+112256 -190703

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
// Copyright (c) Tailscale Inc & AUTHORS
// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause
// Package neterror classifies network errors.
@@ -50,8 +50,8 @@ var packetWasTruncated func(error) bool // non-nil on Windows at least
// size and an error are returned (as per the partial fix for golang/go#14074).
// If the WSAEMSGSIZE error is returned, then we ignore the error to get
// semantics similar to the POSIX operating systems. One caveat is that it
// appears that the source address is not returned when WSAEMSGSIZE occurs, but
// we do not currently look at the source address.
// appears that the source address is not returned when WSAEMSGSIZE occurs, so
// a caller can't check where a truncated datagram came from.
func PacketWasTruncated(err error) bool {
if packetWasTruncated == nil {
return false