[sys] windows: add SIO_UDP_NETRESET for net/ to use

19 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
Jul 26, 2024, 5:09:07 PM7/26/24
to goph...@pubsubhelper.golang.org, James Tucker, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

windows: add SIO_UDP_NETRESET for net/ to use

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
Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
GitHub-Last-Rev: d2afa89a74920b0fd889deceb864a777a673e809
GitHub-Pull-Request: golang/sys#210

Change diff

diff --git a/windows/types_windows.go b/windows/types_windows.go
index 4d0c157..d5f021e 100644
--- a/windows/types_windows.go
+++ b/windows/types_windows.go
@@ -1060,6 +1060,7 @@
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

Change information

Files:
  • M windows/types_windows.go
Change size: XS
Delta: 1 file changed, 1 insertion(+), 0 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: sys
Gerrit-Branch: master
Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
Gerrit-Change-Number: 601038
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-CC: James Tucker <jftu...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Gopher Robot (Gerrit)

unread,
Jul 26, 2024, 5:09:09 PM7/26/24
to Gerrit Bot, James Tucker, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gopher Robot added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gopher Robot . unresolved

I spotted some possible problems.

These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

Possible problems detected:
1. Lines in the commit message should be wrapped at ~76 characters unless needed for things like URLs or tables. You have a 124 character line.

The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


(In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sys
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
    Gerrit-Change-Number: 601038
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: James Tucker <jftu...@gmail.com>
    Gerrit-Comment-Date: Fri, 26 Jul 2024 21:09:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    Jul 26, 2024, 5:10:21 PM7/26/24
    to Gerrit Bot, James Tucker, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Message from Gopher Robot

    Congratulations on opening your first change. Thank you for your contribution!

    Next steps:
    A maintainer will review your change and provide feedback. See
    https://go.dev/doc/contribute#review for more info and tips to get your
    patch through code review.

    Most changes in the Go project go through a few rounds of revision. This can be
    surprising to people new to the project. The careful, iterative review process
    is our way of helping mentor contributors and ensuring that their contributions
    have a lasting impact.

    During May-July and Nov-Jan the Go project is in a code freeze, during which
    little code gets reviewed or merged. If a reviewer responds with a comment like
    R=go1.11 or adds a tag like "wait-release", it means that this CL will be
    reviewed as part of the next development cycle. See https://go.dev/s/release
    for more details.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sys
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
    Gerrit-Change-Number: 601038
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: James Tucker <jftu...@gmail.com>
    Gerrit-Comment-Date: Fri, 26 Jul 2024 21:10:16 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Brad Fitzpatrick (Gerrit)

    unread,
    Jul 26, 2024, 5:34:05 PM7/26/24
    to Gerrit Bot, James Tucker, goph...@pubsubhelper.golang.org, Alex Brainman, Brad Fitzpatrick, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Alex Brainman

    Brad Fitzpatrick added 1 comment

    Commit Message
    Line 11, Patchset 1 (Latest):For golang/go#68614
    Brad Fitzpatrick . unresolved

    s/For/Updates/

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Brainman
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sys
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
    Gerrit-Change-Number: 601038
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
    Gerrit-CC: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: James Tucker <jftu...@gmail.com>
    Gerrit-Attention: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Comment-Date: Fri, 26 Jul 2024 21:34:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Brad Fitzpatrick (Gerrit)

    unread,
    Jul 26, 2024, 5:34:23 PM7/26/24
    to Gerrit Bot, James Tucker, goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Alex Brainman, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Alex Brainman

    Brad Fitzpatrick voted Code-Review+2

    Code-Review+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Brainman
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sys
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
    Gerrit-Change-Number: 601038
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: James Tucker <jftu...@gmail.com>
    Gerrit-Attention: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Comment-Date: Fri, 26 Jul 2024 21:34:19 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Brad Fitzpatrick (Gerrit)

    unread,
    Jul 26, 2024, 5:35:11 PM7/26/24
    to Gerrit Bot, James Tucker, goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Alex Brainman, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Alex Brainman

    Brad Fitzpatrick added 1 comment

    Commit Message
    Line 7, Patchset 1 (Latest):windows: add SIO_UDP_NETRESET for net/ to use
    Brad Fitzpatrick . unresolved

    windows: add SIO_UDP_NETRESET constant

    (the issue's sufficient context for future steps)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Brainman
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sys
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
    Gerrit-Change-Number: 601038
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: James Tucker <jftu...@gmail.com>
    Gerrit-Attention: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Comment-Date: Fri, 26 Jul 2024 21:35:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alex Brainman (Gerrit)

    unread,
    Jul 28, 2024, 3:07:52 AM7/28/24
    to Gerrit Bot, James Tucker, goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Gopher Robot, golang-co...@googlegroups.com

    Alex Brainman voted

    Code-Review+2
    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sys
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
    Gerrit-Change-Number: 601038
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: James Tucker <jftu...@gmail.com>
    Gerrit-Comment-Date: Sun, 28 Jul 2024 07:07:46 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Aug 28, 2024, 2:16:14 PM8/28/24
    to James Tucker, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Alex Brainman and Brad Fitzpatrick

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #2 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Brainman
    • Brad Fitzpatrick
    Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: newpatchset
      Gerrit-Project: sys
      Gerrit-Branch: master
      Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
      Gerrit-Change-Number: 601038
      Gerrit-PatchSet: 2
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
      Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: James Tucker <jftu...@gmail.com>
      Gerrit-Attention: Alex Brainman <alex.b...@gmail.com>
      Gerrit-Attention: Brad Fitzpatrick <brad...@golang.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      James Tucker (Gerrit)

      unread,
      Aug 28, 2024, 2:19:50 PM8/28/24
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Alex Brainman, Brad Fitzpatrick, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Alex Brainman and Brad Fitzpatrick

      James Tucker added 1 comment

      Patchset-level comments
      File-level comment, Patchset 2 (Latest):
      James Tucker . resolved

      I pushed to the github branch with the commit message modifications as per the instructions on github, and it created a new patchset here, but did not update the commit message based on the content of that git push (https://github.com/golang/sys/commit/9f1a88a73d8fa02bd00255eb033305d33a7f103a). I attempted to edit here instead and got a 403 modal dialog.

      I can just create a new PR instead if that's easiest, or if you can make the small edits as you press merge, even better.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Alex Brainman
      • Brad Fitzpatrick
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: sys
      Gerrit-Branch: master
      Gerrit-Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765bf
      Gerrit-Change-Number: 601038
      Gerrit-PatchSet: 2
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
      Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: James Tucker <jftu...@gmail.com>
      Gerrit-Attention: Alex Brainman <alex.b...@gmail.com>
      Gerrit-Attention: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Comment-Date: Wed, 28 Aug 2024 18:19:45 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      James Tucker (Gerrit)

      unread,
      Aug 28, 2024, 3:28:53 PM8/28/24
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Alex Brainman, Brad Fitzpatrick, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Alex Brainman and Brad Fitzpatrick

      James Tucker added 1 comment

      Patchset-level comments
      James Tucker . resolved

      Due to issues with the PR integration this should be closed, superseded by https://go-review.googlesource.com/c/sys/+/609295

      Gerrit-Comment-Date: Wed, 28 Aug 2024 19:28:48 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Gopher Robot (Gerrit)

      unread,
      Aug 28, 2024, 3:40:36 PM8/28/24
      to Gerrit Bot, James Tucker, goph...@pubsubhelper.golang.org, Go LUCI, Alex Brainman, Brad Fitzpatrick, golang-co...@googlegroups.com

      Gopher Robot abandoned this change

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: abandon
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages