Skip to content

Commit

Permalink
windows: add SIO_UDP_NETRESET constant
Browse files Browse the repository at this point in the history
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Funda Secgin <fundasecgin38@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
  • Loading branch information
raggi authored and gopherbot committed Sep 4, 2024
1 parent ed67b15 commit a43b625
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions windows/types_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a43b625

Please sign in to comment.