[sys] windows: add IP_HDRINCL, IP_PKTINFO, IPV6_PKTINFO

33 views
Skip to first unread message

Tobias Klauser (Gerrit)

unread,
Mar 15, 2021, 12:08:28 PM3/15/21
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Ian Lance Taylor, Go Bot, Alex Brainman, Brad Fitzpatrick, golang-co...@googlegroups.com

Tobias Klauser submitted this change.

View Change

Approvals: Ian Lance Taylor: Looks good to me, approved Tobias Klauser: Trusted; Run TryBots Go Bot: TryBots succeeded
windows: add IP_HDRINCL, IP_PKTINFO, IPV6_PKTINFO

These will be used to replace the respective local definitions in
the golang.org/x/net package.

Change-Id: Ieae8908a87ee7df1ca43683e7e921128bff90b8d
Reviewed-on: https://go-review.googlesource.com/c/sys/+/301690
Trust: Tobias Klauser <tobias....@gmail.com>
Run-TryBot: Tobias Klauser <tobias....@gmail.com>
TryBot-Result: Go Bot <go...@golang.org>
Reviewed-by: Ian Lance Taylor <ia...@golang.org>
---
M windows/types_windows.go
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/windows/types_windows.go b/windows/types_windows.go
index 369cc91..23fe18e 100644
--- a/windows/types_windows.go
+++ b/windows/types_windows.go
@@ -1020,6 +1020,7 @@

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

+ IP_HDRINCL = 0x2
IP_TOS = 0x3
IP_TTL = 0x4
IP_MULTICAST_IF = 0x9
@@ -1027,6 +1028,7 @@
IP_MULTICAST_LOOP = 0xb
IP_ADD_MEMBERSHIP = 0xc
IP_DROP_MEMBERSHIP = 0xd
+ IP_PKTINFO = 0x13

IPV6_V6ONLY = 0x1b
IPV6_UNICAST_HOPS = 0x4
@@ -1035,6 +1037,7 @@
IPV6_MULTICAST_LOOP = 0xb
IPV6_JOIN_GROUP = 0xc
IPV6_LEAVE_GROUP = 0xd
+ IPV6_PKTINFO = 0x13

MSG_OOB = 0x1
MSG_PEEK = 0x2

To view, visit change 301690. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: sys
Gerrit-Branch: master
Gerrit-Change-Id: Ieae8908a87ee7df1ca43683e7e921128bff90b8d
Gerrit-Change-Number: 301690
Gerrit-PatchSet: 2
Gerrit-Owner: Tobias Klauser <tobias....@gmail.com>
Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
Gerrit-Reviewer: Go Bot <go...@golang.org>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Tobias Klauser <tobias....@gmail.com>
Gerrit-MessageType: merged
Reply all
Reply to author
Forward
0 new messages