From b77594299b429d05028403d72b68172959c7dad5 Mon Sep 17 00:00:00 2001 From: maltalex Date: Wed, 15 Jan 2020 22:20:54 +0000 Subject: [PATCH] windows: add missing network-related constants Change-Id: I75c432e527c42bdf3c91e07590a143c67d9a97a3 GitHub-Last-Rev: d738e281e2da33a04cacbc6b0c71fefc4a22d21d GitHub-Pull-Request: golang/sys#53 Reviewed-on: https://go-review.googlesource.com/c/sys/+/214997 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- windows/types_windows.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/windows/types_windows.go b/windows/types_windows.go index aefb7fc3..809fff0b 100644 --- a/windows/types_windows.go +++ b/windows/types_windows.go @@ -681,19 +681,26 @@ const ( AF_UNSPEC = 0 AF_UNIX = 1 AF_INET = 2 - AF_INET6 = 23 AF_NETBIOS = 17 + AF_INET6 = 23 + AF_IRDA = 26 + AF_BTH = 32 SOCK_STREAM = 1 SOCK_DGRAM = 2 SOCK_RAW = 3 + SOCK_RDM = 4 SOCK_SEQPACKET = 5 - IPPROTO_IP = 0 - IPPROTO_ICMP = 1 - IPPROTO_IPV6 = 0x29 - IPPROTO_TCP = 6 - IPPROTO_UDP = 17 + IPPROTO_IP = 0 + IPPROTO_ICMP = 1 + IPPROTO_IGMP = 2 + BTHPROTO_RFCOMM = 3 + IPPROTO_TCP = 6 + IPPROTO_UDP = 17 + IPPROTO_IPV6 = 41 + IPPROTO_ICMPV6 = 58 + IPPROTO_RM = 113 SOL_SOCKET = 0xffff SO_REUSEADDR = 4