Files
golang.net/ipv6/zsys_zos_s390x.go
Tobias Klauser 798c2154c5 ipv6: use all socket option consts from x/sys/unix
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>
2021-04-20 21:01:06 +00:00

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
}