From c709ea063b76879dc9915358f55d4d77c16ab6d5 Mon Sep 17 00:00:00 2001 From: maltalex Date: Mon, 16 Dec 2019 21:59:25 +0000 Subject: [PATCH] windows: added SO_RCVTIMEO and IPPROTO_ICMP constants Added missing Windows constants SO_RCVTIMEO and IPPROTO_ICMP Change-Id: I3a13fa0af2d085a7294b8d983a94d0d9c3c6ec31 GitHub-Last-Rev: cfafa03e60b067556b398351d4fdb86371681dcc GitHub-Pull-Request: golang/sys#50 Reviewed-on: https://go-review.googlesource.com/c/sys/+/211559 Run-TryBot: Alex Brainman TryBot-Result: Gobot Gobot Reviewed-by: Alex Brainman --- windows/types_windows.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/windows/types_windows.go b/windows/types_windows.go index 8dd95a0a..aefb7fc3 100644 --- a/windows/types_windows.go +++ b/windows/types_windows.go @@ -690,6 +690,7 @@ const ( SOCK_SEQPACKET = 5 IPPROTO_IP = 0 + IPPROTO_ICMP = 1 IPPROTO_IPV6 = 0x29 IPPROTO_TCP = 6 IPPROTO_UDP = 17 @@ -701,6 +702,7 @@ const ( SO_BROADCAST = 32 SO_LINGER = 128 SO_RCVBUF = 0x1002 + SO_RCVTIMEO = 0x1006 SO_SNDBUF = 0x1001 SO_UPDATE_ACCEPT_CONTEXT = 0x700b SO_UPDATE_CONNECT_CONTEXT = 0x7010