...
1
2
3
4
5
6
7
8
9 package ipv4
10
11
16 import "C"
17
18 const (
19 sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage
20 sizeofSockaddrInet = C.sizeof_struct_sockaddr_in
21 sizeofInetPktinfo = C.sizeof_struct_in_pktinfo
22
23 sizeofIPMreq = C.sizeof_struct_ip_mreq
24 sizeofIPMreqSource = C.sizeof_struct_ip_mreq_source
25 sizeofGroupReq = C.sizeof_struct_group_req
26 sizeofGroupSourceReq = C.sizeof_struct_group_source_req
27 )
28
29 type sockaddrStorage C.struct_sockaddr_storage
30
31 type sockaddrInet C.struct_sockaddr_in
32
33 type inetPktinfo C.struct_in_pktinfo
34
35 type ipMreq C.struct_ip_mreq
36
37 type ipMreqSource C.struct_ip_mreq_source
38
39 type groupReq C.struct_group_req
40
41 type groupSourceReq C.struct_group_source_req
42
View as plain text