...
1
2
3
4
5
6
7
8
9 package ipv6
10
11
16 import "C"
17
18 const (
19 sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage
20 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
21 sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
22 sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo
23
24 sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
25 sizeofGroupReq = C.sizeof_struct_group_req
26 sizeofGroupSourceReq = C.sizeof_struct_group_source_req
27
28 sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
29 )
30
31 type sockaddrStorage C.struct_sockaddr_storage
32
33 type sockaddrInet6 C.struct_sockaddr_in6
34
35 type inet6Pktinfo C.struct_in6_pktinfo
36
37 type ipv6Mtuinfo C.struct_ip6_mtuinfo
38
39 type ipv6Mreq C.struct_ipv6_mreq
40
41 type icmpv6Filter C.struct_icmp6_filter
42
43 type groupReq C.struct_group_req
44
45 type groupSourceReq C.struct_group_source_req
46
View as plain text