summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/ipv6/zsys_zos_s390x.go
blob: 7c75645967391355f619b321dbd57748358148fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// 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
}