Skip to content

Commit

Permalink
windows: add SIO_UDP_NETRESET for net/ to use
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.

For golang/go#68614
  • Loading branch information
raggi committed Jul 26, 2024
1 parent 31ef9e7 commit d2afa89
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 d2afa89

Please sign in to comment.