github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv4/zsys_linux_ppc64.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs defs_linux.go 3 4 package ipv4 5 6 const ( 7 sysIP_TOS = 0x1 8 sysIP_TTL = 0x2 9 sysIP_HDRINCL = 0x3 10 sysIP_OPTIONS = 0x4 11 sysIP_ROUTER_ALERT = 0x5 12 sysIP_RECVOPTS = 0x6 13 sysIP_RETOPTS = 0x7 14 sysIP_PKTINFO = 0x8 15 sysIP_PKTOPTIONS = 0x9 16 sysIP_MTU_DISCOVER = 0xa 17 sysIP_RECVERR = 0xb 18 sysIP_RECVTTL = 0xc 19 sysIP_RECVTOS = 0xd 20 sysIP_MTU = 0xe 21 sysIP_FREEBIND = 0xf 22 sysIP_TRANSPARENT = 0x13 23 sysIP_RECVRETOPTS = 0x7 24 sysIP_ORIGDSTADDR = 0x14 25 sysIP_RECVORIGDSTADDR = 0x14 26 sysIP_MINTTL = 0x15 27 sysIP_NODEFRAG = 0x16 28 sysIP_UNICAST_IF = 0x32 29 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 39 sysIP_MSFILTER = 0x29 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 48 49 sysICMP_FILTER = 0x1 50 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 57 58 sysSOL_SOCKET = 0x1 59 sysSO_ATTACH_FILTER = 0x1a 60 61 sizeofKernelSockaddrStorage = 0x80 62 sizeofSockaddrInet = 0x10 63 sizeofInetPktinfo = 0xc 64 sizeofSockExtendedErr = 0x10 65 66 sizeofIPMreq = 0x8 67 sizeofIPMreqn = 0xc 68 sizeofIPMreqSource = 0xc 69 sizeofGroupReq = 0x88 70 sizeofGroupSourceReq = 0x108 71 72 sizeofICMPFilter = 0x4 73 74 sizeofSockFprog = 0x10 75 ) 76 77 type kernelSockaddrStorage struct { 78 Family uint16 79 X__data [126]int8 80 } 81 82 type sockaddrInet struct { 83 Family uint16 84 Port uint16 85 Addr [4]byte /* in_addr */ 86 X__pad [8]uint8 87 } 88 89 type inetPktinfo struct { 90 Ifindex int32 91 Spec_dst [4]byte /* in_addr */ 92 Addr [4]byte /* in_addr */ 93 } 94 95 type sockExtendedErr struct { 96 Errno uint32 97 Origin uint8 98 Type uint8 99 Code uint8 100 Pad uint8 101 Info uint32 102 Data uint32 103 } 104 105 type ipMreq struct { 106 Multiaddr [4]byte /* in_addr */ 107 Interface [4]byte /* in_addr */ 108 } 109 110 type ipMreqn struct { 111 Multiaddr [4]byte /* in_addr */ 112 Address [4]byte /* in_addr */ 113 Ifindex int32 114 } 115 116 type ipMreqSource struct { 117 Multiaddr uint32 118 Interface uint32 119 Sourceaddr uint32 120 } 121 122 type groupReq struct { 123 Interface uint32 124 Pad_cgo_0 [4]byte 125 Group kernelSockaddrStorage 126 } 127 128 type groupSourceReq struct { 129 Interface uint32 130 Pad_cgo_0 [4]byte 131 Group kernelSockaddrStorage 132 Source kernelSockaddrStorage 133 } 134 135 type icmpFilter struct { 136 Data uint32 137 } 138 139 type sockFProg struct { 140 Len uint16 141 Pad_cgo_0 [6]byte 142 Filter *sockFilter 143 } 144 145 type sockFilter struct { 146 Code uint16 147 Jt uint8 148 Jf uint8 149 K uint32 150 }