...
1
2
3
4 package ipv6
5
6 const (
7 sizeofSockaddrStorage = 0x80
8 sizeofSockaddrInet6 = 0x1c
9 sizeofInet6Pktinfo = 0x14
10 sizeofIPv6Mtuinfo = 0x20
11
12 sizeofIPv6Mreq = 0x14
13 sizeofGroupReq = 0x84
14 sizeofGroupSourceReq = 0x104
15
16 sizeofICMPv6Filter = 0x20
17 )
18
19 type sockaddrStorage struct {
20 Len uint8
21 Family uint8
22 X__ss_pad1 [6]int8
23 X__ss_align int64
24 X__ss_pad2 [112]int8
25 }
26
27 type sockaddrInet6 struct {
28 Len uint8
29 Family uint8
30 Port uint16
31 Flowinfo uint32
32 Addr [16]byte
33 Scope_id uint32
34 }
35
36 type inet6Pktinfo struct {
37 Addr [16]byte
38 Ifindex uint32
39 }
40
41 type ipv6Mtuinfo struct {
42 Addr sockaddrInet6
43 Mtu uint32
44 }
45
46 type ipv6Mreq struct {
47 Multiaddr [16]byte
48 Interface uint32
49 }
50
51 type icmpv6Filter struct {
52 Filt [8]uint32
53 }
54
55 type groupReq struct {
56 Interface uint32
57 Pad_cgo_0 [128]byte
58 }
59
60 type groupSourceReq struct {
61 Interface uint32
62 Pad_cgo_0 [128]byte
63 Pad_cgo_1 [128]byte
64 }
65
View as plain text