...
1
2
3
4
5
6
7
8
9 package ipv6
10
11
19 import "C"
20
21 const (
22 sizeofKernelSockaddrStorage = C.sizeof_struct___kernel_sockaddr_storage
23 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
24 sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
25 sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo
26 sizeofIPv6FlowlabelReq = C.sizeof_struct_in6_flowlabel_req
27
28 sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
29 sizeofGroupReq = C.sizeof_struct_group_req
30 sizeofGroupSourceReq = C.sizeof_struct_group_source_req
31
32 sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
33 )
34
35 type kernelSockaddrStorage C.struct___kernel_sockaddr_storage
36
37 type sockaddrInet6 C.struct_sockaddr_in6
38
39 type inet6Pktinfo C.struct_in6_pktinfo
40
41 type ipv6Mtuinfo C.struct_ip6_mtuinfo
42
43 type ipv6FlowlabelReq C.struct_in6_flowlabel_req
44
45 type ipv6Mreq C.struct_ipv6_mreq
46
47 type groupReq C.struct_group_req
48
49 type groupSourceReq C.struct_group_source_req
50
51 type icmpv6Filter C.struct_icmp6_filter
52
View as plain text