mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 08:37:31 -04:00
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: 7377c793c687a74012e0ff3ce458eb2d8717ea72 GitHub-Pull-Request: golang/sys#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>
This commit is contained in:
committed by
Alex Brainman
parent
3330b5e756
commit
c175b6ba67
@@ -1157,6 +1157,22 @@ type WSAMsg struct {
|
|||||||
Flags uint32
|
Flags uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type WSACMSGHDR struct {
|
||||||
|
Len uintptr
|
||||||
|
Level int32
|
||||||
|
Type int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IN_PKTINFO struct {
|
||||||
|
Addr [4]byte
|
||||||
|
Ifindex uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IN6_PKTINFO struct {
|
||||||
|
Addr [16]byte
|
||||||
|
Ifindex uint32
|
||||||
|
}
|
||||||
|
|
||||||
// Flags for WSASocket
|
// Flags for WSASocket
|
||||||
const (
|
const (
|
||||||
WSA_FLAG_OVERLAPPED = 0x01
|
WSA_FLAG_OVERLAPPED = 0x01
|
||||||
|
|||||||
Reference in New Issue
Block a user