Skip to content

Commit 7377c79

Browse files
committed
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
1 parent 7401cce commit 7377c79

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: 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)