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>
63 lines
1.1 KiB
Go
63 lines
1.1 KiB
Go
// Copyright 2020 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Hand edited based on zerrors_zos_s390x.go
|
|
// TODO(Bill O'Farrell): auto-generate.
|
|
|
|
package ipv6
|
|
|
|
const (
|
|
sizeofSockaddrStorage = 128
|
|
sizeofICMPv6Filter = 32
|
|
sizeofInet6Pktinfo = 20
|
|
sizeofIPv6Mtuinfo = 32
|
|
sizeofSockaddrInet6 = 28
|
|
sizeofGroupReq = 136
|
|
sizeofGroupSourceReq = 264
|
|
)
|
|
|
|
type sockaddrStorage struct {
|
|
Len uint8
|
|
Family byte
|
|
ss_pad1 [6]byte
|
|
ss_align int64
|
|
ss_pad2 [112]byte
|
|
}
|
|
|
|
type sockaddrInet6 struct {
|
|
Len uint8
|
|
Family uint8
|
|
Port uint16
|
|
Flowinfo uint32
|
|
Addr [16]byte
|
|
Scope_id uint32
|
|
}
|
|
|
|
type inet6Pktinfo struct {
|
|
Addr [16]byte
|
|
Ifindex uint32
|
|
}
|
|
|
|
type ipv6Mtuinfo struct {
|
|
Addr sockaddrInet6
|
|
Mtu uint32
|
|
}
|
|
|
|
type groupReq struct {
|
|
Interface uint32
|
|
reserved uint32
|
|
Group sockaddrStorage
|
|
}
|
|
|
|
type groupSourceReq struct {
|
|
Interface uint32
|
|
reserved uint32
|
|
Group sockaddrStorage
|
|
Source sockaddrStorage
|
|
}
|
|
|
|
type icmpv6Filter struct {
|
|
Filt [8]uint32
|
|
}
|