Files
golang.net/internal/socket/zsys_linux_arm.go
Tobias Klauser 2554d15bf5 internal/socket: use SizeofSockaddrInet{4,6} constants from x/sys/unix
Use the SizeofSockaddrInet4 and SizeofSockaddrInet6 constants defined in
the golang.org/x/sys/unix package instead of locally duplicating them.

Change-Id: I7e7ea9ec6e81a0af70bbf5c7e91f61a0662228ff
Reviewed-on: https://go-review.googlesource.com/c/net/+/312489
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-04-21 22:37:29 +00:00

36 lines
464 B
Go

// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs defs_linux.go
package socket
type iovec struct {
Base *byte
Len uint32
}
type msghdr struct {
Name *byte
Namelen uint32
Iov *iovec
Iovlen uint32
Control *byte
Controllen uint32
Flags int32
}
type mmsghdr struct {
Hdr msghdr
Len uint32
}
type cmsghdr struct {
Len uint32
Level int32
Type int32
}
const (
sizeofIovec = 0x8
sizeofMsghdr = 0x1c
)