From c6e025ad80050062a239b53e0718310505381625 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 15 Mar 2021 16:04:08 +0100 Subject: [PATCH] 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 Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- windows/types_windows.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/types_windows.go b/windows/types_windows.go index 369cc91d..23fe18ec 100644 --- a/windows/types_windows.go +++ b/windows/types_windows.go @@ -1020,6 +1020,7 @@ const ( // 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 @@ const ( 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 @@ const ( IPV6_MULTICAST_LOOP = 0xb IPV6_JOIN_GROUP = 0xc IPV6_LEAVE_GROUP = 0xd + IPV6_PKTINFO = 0x13 MSG_OOB = 0x1 MSG_PEEK = 0x2