...
1
2
3
4
5
6
7
8
9 package ipv4
10
11
20 import "C"
21
22 const (
23 sizeofKernelSockaddrStorage = C.sizeof_struct___kernel_sockaddr_storage
24 sizeofSockaddrInet = C.sizeof_struct_sockaddr_in
25 sizeofInetPktinfo = C.sizeof_struct_in_pktinfo
26 sizeofSockExtendedErr = C.sizeof_struct_sock_extended_err
27
28 sizeofIPMreq = C.sizeof_struct_ip_mreq
29 sizeofIPMreqSource = C.sizeof_struct_ip_mreq_source
30 sizeofGroupReq = C.sizeof_struct_group_req
31 sizeofGroupSourceReq = C.sizeof_struct_group_source_req
32
33 sizeofICMPFilter = C.sizeof_struct_icmp_filter
34 )
35
36 type kernelSockaddrStorage C.struct___kernel_sockaddr_storage
37
38 type sockaddrInet C.struct_sockaddr_in
39
40 type inetPktinfo C.struct_in_pktinfo
41
42 type sockExtendedErr C.struct_sock_extended_err
43
44 type ipMreq C.struct_ip_mreq
45
46 type ipMreqSource C.struct_ip_mreq_source
47
48 type groupReq C.struct_group_req
49
50 type groupSourceReq C.struct_group_source_req
51
52 type icmpFilter C.struct_icmp_filter
53
View as plain text