mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
Remove the remaining local definitions of various socket option constants and use the constants defined in the golang.org/x/sys/unix package instead. Change-Id: I110cf984e2bac5bf48d6e6489fd6da8ab7b13b10 Reviewed-on: https://go-review.googlesource.com/c/net/+/311749 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>
64 lines
1.1 KiB
Go
64 lines
1.1 KiB
Go
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
|
// cgo -godefs defs_solaris.go
|
|
|
|
package ipv6
|
|
|
|
const (
|
|
sizeofSockaddrStorage = 0x100
|
|
sizeofSockaddrInet6 = 0x20
|
|
sizeofInet6Pktinfo = 0x14
|
|
sizeofIPv6Mtuinfo = 0x24
|
|
|
|
sizeofIPv6Mreq = 0x14
|
|
sizeofGroupReq = 0x104
|
|
sizeofGroupSourceReq = 0x204
|
|
|
|
sizeofICMPv6Filter = 0x20
|
|
)
|
|
|
|
type sockaddrStorage struct {
|
|
Family uint16
|
|
X_ss_pad1 [6]int8
|
|
X_ss_align float64
|
|
X_ss_pad2 [240]int8
|
|
}
|
|
|
|
type sockaddrInet6 struct {
|
|
Family uint16
|
|
Port uint16
|
|
Flowinfo uint32
|
|
Addr [16]byte /* in6_addr */
|
|
Scope_id uint32
|
|
X__sin6_src_id uint32
|
|
}
|
|
|
|
type inet6Pktinfo struct {
|
|
Addr [16]byte /* in6_addr */
|
|
Ifindex uint32
|
|
}
|
|
|
|
type ipv6Mtuinfo struct {
|
|
Addr sockaddrInet6
|
|
Mtu uint32
|
|
}
|
|
|
|
type ipv6Mreq struct {
|
|
Multiaddr [16]byte /* in6_addr */
|
|
Interface uint32
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
type icmpv6Filter struct {
|
|
X__icmp6_filt [8]uint32
|
|
}
|