1 // Created by cgo -godefs - DO NOT EDIT
2 // cgo -godefs defs_linux.go
11 sysIP_ROUTER_ALERT = 0x5
15 sysIP_PKTOPTIONS = 0x9
16 sysIP_MTU_DISCOVER = 0xa
22 sysIP_TRANSPARENT = 0x13
23 sysIP_RECVRETOPTS = 0x7
24 sysIP_ORIGDSTADDR = 0x14
25 sysIP_RECVORIGDSTADDR = 0x14
28 sysIP_UNICAST_IF = 0x32
30 sysIP_MULTICAST_IF = 0x20
31 sysIP_MULTICAST_TTL = 0x21
32 sysIP_MULTICAST_LOOP = 0x22
33 sysIP_ADD_MEMBERSHIP = 0x23
34 sysIP_DROP_MEMBERSHIP = 0x24
35 sysIP_UNBLOCK_SOURCE = 0x25
36 sysIP_BLOCK_SOURCE = 0x26
37 sysIP_ADD_SOURCE_MEMBERSHIP = 0x27
38 sysIP_DROP_SOURCE_MEMBERSHIP = 0x28
40 sysMCAST_JOIN_GROUP = 0x2a
41 sysMCAST_LEAVE_GROUP = 0x2d
42 sysMCAST_JOIN_SOURCE_GROUP = 0x2e
43 sysMCAST_LEAVE_SOURCE_GROUP = 0x2f
44 sysMCAST_BLOCK_SOURCE = 0x2b
45 sysMCAST_UNBLOCK_SOURCE = 0x2c
46 sysMCAST_MSFILTER = 0x30
47 sysIP_MULTICAST_ALL = 0x31
51 sysSO_EE_ORIGIN_NONE = 0x0
52 sysSO_EE_ORIGIN_LOCAL = 0x1
53 sysSO_EE_ORIGIN_ICMP = 0x2
54 sysSO_EE_ORIGIN_ICMP6 = 0x3
55 sysSO_EE_ORIGIN_TXSTATUS = 0x4
56 sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
59 sysSO_ATTACH_FILTER = 0x1a
61 sizeofKernelSockaddrStorage = 0x80
62 sizeofSockaddrInet = 0x10
63 sizeofInetPktinfo = 0xc
64 sizeofSockExtendedErr = 0x10
68 sizeofIPMreqSource = 0xc
70 sizeofGroupSourceReq = 0x108
72 sizeofICMPFilter = 0x4
74 sizeofSockFprog = 0x10
77 type kernelSockaddrStorage struct {
82 type sockaddrInet struct {
85 Addr [4]byte /* in_addr */
89 type inetPktinfo struct {
91 Spec_dst [4]byte /* in_addr */
92 Addr [4]byte /* in_addr */
95 type sockExtendedErr struct {
106 Multiaddr [4]byte /* in_addr */
107 Interface [4]byte /* in_addr */
110 type ipMreqn struct {
111 Multiaddr [4]byte /* in_addr */
112 Address [4]byte /* in_addr */
116 type ipMreqSource struct {
122 type groupReq struct {
125 Group kernelSockaddrStorage
128 type groupSourceReq struct {
131 Group kernelSockaddrStorage
132 Source kernelSockaddrStorage
135 type icmpFilter struct {
139 type sockFProg struct {
145 type sockFilter struct {