...
1
2
3
4 package ipv6
5
6 const (
7 sizeofKernelSockaddrStorage = 0x80
8 sizeofSockaddrInet6 = 0x1c
9 sizeofInet6Pktinfo = 0x14
10 sizeofIPv6Mtuinfo = 0x20
11 sizeofIPv6FlowlabelReq = 0x20
12
13 sizeofIPv6Mreq = 0x14
14 sizeofGroupReq = 0x88
15 sizeofGroupSourceReq = 0x108
16
17 sizeofICMPv6Filter = 0x20
18 )
19
20 type kernelSockaddrStorage struct {
21 Family uint16
22 X__data [126]int8
23 }
24
25 type sockaddrInet6 struct {
26 Family uint16
27 Port uint16
28 Flowinfo uint32
29 Addr [16]byte
30 Scope_id uint32
31 }
32
33 type inet6Pktinfo struct {
34 Addr [16]byte
35 Ifindex int32
36 }
37
38 type ipv6Mtuinfo struct {
39 Addr sockaddrInet6
40 Mtu uint32
41 }
42
43 type ipv6FlowlabelReq struct {
44 Dst [16]byte
45 Label uint32
46 Action uint8
47 Share uint8
48 Flags uint16
49 Expires uint16
50 Linger uint16
51 X__flr_pad uint32
52 }
53
54 type ipv6Mreq struct {
55 Multiaddr [16]byte
56 Ifindex int32
57 }
58
59 type groupReq struct {
60 Interface uint32
61 Pad_cgo_0 [4]byte
62 Group kernelSockaddrStorage
63 }
64
65 type groupSourceReq struct {
66 Interface uint32
67 Pad_cgo_0 [4]byte
68 Group kernelSockaddrStorage
69 Source kernelSockaddrStorage
70 }
71
72 type icmpv6Filter struct {
73 Data [8]uint32
74 }
75
View as plain text