-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathzsys_zos_s390x.go
56 lines (47 loc) · 1 KB
/
zsys_zos_s390x.go
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
// 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 ipv4
const (
sizeofIPMreq = 8
sizeofSockaddrInet4 = 16
sizeofSockaddrStorage = 128
sizeofGroupReq = 136
sizeofGroupSourceReq = 264
sizeofInetPktinfo = 8
)
type sockaddrInet4 struct {
Len uint8
Family uint8
Port uint16
Addr [4]byte
Zero [8]uint8
}
type inetPktinfo struct {
Addr [4]byte
Ifindex uint32
}
type sockaddrStorage struct {
Len uint8
Family byte
ss_pad1 [6]byte
ss_align int64
ss_pad2 [112]byte
}
type groupReq struct {
Interface uint32
reserved uint32
Group sockaddrStorage
}
type groupSourceReq struct {
Interface uint32
reserved uint32
Group sockaddrStorage
Source sockaddrStorage
}
type ipMreq struct {
Multiaddr [4]byte /* in_addr */
Interface [4]byte /* in_addr */
}