Skip to content

Commit c175b6b

Browse files
database64128alexbrainman
authored andcommitted
windows: add cmsghdr and pktinfo structures
- CMSGHDR from ws2def.h, corresponds to Cmsghdr in unix - IN_PKTINFO from ws2ipdef.h, corresponds to InetPktinfo in unix - IN6_PKTINFO from ws2ipdef.h, corresponds to Inet6Pktinfo in unix Change-Id: I74f6812588859c3a6080e6675df28998fc435965 GitHub-Last-Rev: 7377c79 GitHub-Pull-Request: #246 Reviewed-on: https://go-review.googlesource.com/c/sys/+/658175 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
1 parent 3330b5e commit c175b6b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

windows/types_windows.go

+16
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,22 @@ type WSAMsg struct {
11571157
Flags uint32
11581158
}
11591159

1160+
type WSACMSGHDR struct {
1161+
Len uintptr
1162+
Level int32
1163+
Type int32
1164+
}
1165+
1166+
type IN_PKTINFO struct {
1167+
Addr [4]byte
1168+
Ifindex uint32
1169+
}
1170+
1171+
type IN6_PKTINFO struct {
1172+
Addr [16]byte
1173+
Ifindex uint32
1174+
}
1175+
11601176
// Flags for WSASocket
11611177
const (
11621178
WSA_FLAG_OVERLAPPED = 0x01

0 commit comments

Comments
 (0)