From a43b625d3c32b5cd2726d132c8478884ae6cb0dc Mon Sep 17 00:00:00 2001 From: James Tucker Date: Fri, 26 Jul 2024 13:58:09 -0700 Subject: [PATCH] windows: add SIO_UDP_NETRESET constant In order to get BSD like behavior with regard to ICMP, it is necessary to set SIO_UDP_NETRESET as well as SIO_UDP_CONNRESET. Updates golang/go#68614 Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765c0 Reviewed-on: https://go-review.googlesource.com/c/sys/+/609295 LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Reviewed-by: Funda Secgin Reviewed-by: Ian Lance Taylor Reviewed-by: Alex Brainman Auto-Submit: Ian Lance Taylor --- windows/types_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/types_windows.go b/windows/types_windows.go index 3f03b3d57..7b97a154c 100644 --- a/windows/types_windows.go +++ b/windows/types_windows.go @@ -1060,6 +1060,7 @@ const ( SIO_GET_EXTENSION_FUNCTION_POINTER = IOC_INOUT | IOC_WS2 | 6 SIO_KEEPALIVE_VALS = IOC_IN | IOC_VENDOR | 4 SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12 + SIO_UDP_NETRESET = IOC_IN | IOC_VENDOR | 15 // cf. http://support.microsoft.com/default.aspx?scid=kb;en-us;257460