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