mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
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>
36 lines
464 B
Go
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
|
|
)
|