mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
Remove the remaining local definitions of the IP_RECVDSTADDR, IP_RECVIF and IP_RECVTTL socket option constants and use the constants defined in the golang.org/x/sys/unix package instead. Change-Id: I5308f5c5b3586e9d5c050e6cf126aeba48b47ba7 Reviewed-on: https://go-review.googlesource.com/c/net/+/311289 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
58 lines
1023 B
Go
58 lines
1023 B
Go
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
|
// cgo -godefs defs_solaris.go
|
|
|
|
package ipv4
|
|
|
|
const (
|
|
sizeofSockaddrStorage = 0x100
|
|
sizeofSockaddrInet = 0x10
|
|
sizeofInetPktinfo = 0xc
|
|
|
|
sizeofIPMreq = 0x8
|
|
sizeofIPMreqSource = 0xc
|
|
sizeofGroupReq = 0x104
|
|
sizeofGroupSourceReq = 0x204
|
|
)
|
|
|
|
type sockaddrStorage struct {
|
|
Family uint16
|
|
X_ss_pad1 [6]int8
|
|
X_ss_align float64
|
|
X_ss_pad2 [240]int8
|
|
}
|
|
|
|
type sockaddrInet struct {
|
|
Family uint16
|
|
Port uint16
|
|
Addr [4]byte /* in_addr */
|
|
Zero [8]int8
|
|
}
|
|
|
|
type inetPktinfo struct {
|
|
Ifindex uint32
|
|
Spec_dst [4]byte /* in_addr */
|
|
Addr [4]byte /* in_addr */
|
|
}
|
|
|
|
type ipMreq struct {
|
|
Multiaddr [4]byte /* in_addr */
|
|
Interface [4]byte /* in_addr */
|
|
}
|
|
|
|
type ipMreqSource struct {
|
|
Multiaddr [4]byte /* in_addr */
|
|
Sourceaddr [4]byte /* in_addr */
|
|
Interface [4]byte /* in_addr */
|
|
}
|
|
|
|
type groupReq struct {
|
|
Interface uint32
|
|
Pad_cgo_0 [256]byte
|
|
}
|
|
|
|
type groupSourceReq struct {
|
|
Interface uint32
|
|
Pad_cgo_0 [256]byte
|
|
Pad_cgo_1 [256]byte
|
|
}
|