Skip to content

Commit a43b625

Browse files
raggigopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Funda Secgin <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Alex Brainman <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent ed67b15 commit a43b625

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: windows/types_windows.go

+1
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@ const (
10601060
SIO_GET_EXTENSION_FUNCTION_POINTER = IOC_INOUT | IOC_WS2 | 6
10611061
SIO_KEEPALIVE_VALS = IOC_IN | IOC_VENDOR | 4
10621062
SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12
1063+
SIO_UDP_NETRESET = IOC_IN | IOC_VENDOR | 15
10631064

10641065
// cf. http://support.microsoft.com/default.aspx?scid=kb;en-us;257460
10651066

0 commit comments

Comments
 (0)