github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv6/zsys_linux_riscv64.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs defs_linux.go 3 4 // +build riscv64 5 6 package ipv6 7 8 const ( 9 sysIPV6_ADDRFORM = 0x1 10 sysIPV6_2292PKTINFO = 0x2 11 sysIPV6_2292HOPOPTS = 0x3 12 sysIPV6_2292DSTOPTS = 0x4 13 sysIPV6_2292RTHDR = 0x5 14 sysIPV6_2292PKTOPTIONS = 0x6 15 sysIPV6_CHECKSUM = 0x7 16 sysIPV6_2292HOPLIMIT = 0x8 17 sysIPV6_NEXTHOP = 0x9 18 sysIPV6_FLOWINFO = 0xb 19 20 sysIPV6_UNICAST_HOPS = 0x10 21 sysIPV6_MULTICAST_IF = 0x11 22 sysIPV6_MULTICAST_HOPS = 0x12 23 sysIPV6_MULTICAST_LOOP = 0x13 24 sysIPV6_ADD_MEMBERSHIP = 0x14 25 sysIPV6_DROP_MEMBERSHIP = 0x15 26 sysMCAST_JOIN_GROUP = 0x2a 27 sysMCAST_LEAVE_GROUP = 0x2d 28 sysMCAST_JOIN_SOURCE_GROUP = 0x2e 29 sysMCAST_LEAVE_SOURCE_GROUP = 0x2f 30 sysMCAST_BLOCK_SOURCE = 0x2b 31 sysMCAST_UNBLOCK_SOURCE = 0x2c 32 sysMCAST_MSFILTER = 0x30 33 sysIPV6_ROUTER_ALERT = 0x16 34 sysIPV6_MTU_DISCOVER = 0x17 35 sysIPV6_MTU = 0x18 36 sysIPV6_RECVERR = 0x19 37 sysIPV6_V6ONLY = 0x1a 38 sysIPV6_JOIN_ANYCAST = 0x1b 39 sysIPV6_LEAVE_ANYCAST = 0x1c 40 41 sysIPV6_FLOWLABEL_MGR = 0x20 42 sysIPV6_FLOWINFO_SEND = 0x21 43 44 sysIPV6_IPSEC_POLICY = 0x22 45 sysIPV6_XFRM_POLICY = 0x23 46 47 sysIPV6_RECVPKTINFO = 0x31 48 sysIPV6_PKTINFO = 0x32 49 sysIPV6_RECVHOPLIMIT = 0x33 50 sysIPV6_HOPLIMIT = 0x34 51 sysIPV6_RECVHOPOPTS = 0x35 52 sysIPV6_HOPOPTS = 0x36 53 sysIPV6_RTHDRDSTOPTS = 0x37 54 sysIPV6_RECVRTHDR = 0x38 55 sysIPV6_RTHDR = 0x39 56 sysIPV6_RECVDSTOPTS = 0x3a 57 sysIPV6_DSTOPTS = 0x3b 58 sysIPV6_RECVPATHMTU = 0x3c 59 sysIPV6_PATHMTU = 0x3d 60 sysIPV6_DONTFRAG = 0x3e 61 62 sysIPV6_RECVTCLASS = 0x42 63 sysIPV6_TCLASS = 0x43 64 65 sysIPV6_ADDR_PREFERENCES = 0x48 66 67 sysIPV6_PREFER_SRC_TMP = 0x1 68 sysIPV6_PREFER_SRC_PUBLIC = 0x2 69 sysIPV6_PREFER_SRC_PUBTMP_DEFAULT = 0x100 70 sysIPV6_PREFER_SRC_COA = 0x4 71 sysIPV6_PREFER_SRC_HOME = 0x400 72 sysIPV6_PREFER_SRC_CGA = 0x8 73 sysIPV6_PREFER_SRC_NONCGA = 0x800 74 75 sysIPV6_MINHOPCOUNT = 0x49 76 77 sysIPV6_ORIGDSTADDR = 0x4a 78 sysIPV6_RECVORIGDSTADDR = 0x4a 79 sysIPV6_TRANSPARENT = 0x4b 80 sysIPV6_UNICAST_IF = 0x4c 81 82 sysICMPV6_FILTER = 0x1 83 84 sysICMPV6_FILTER_BLOCK = 0x1 85 sysICMPV6_FILTER_PASS = 0x2 86 sysICMPV6_FILTER_BLOCKOTHERS = 0x3 87 sysICMPV6_FILTER_PASSONLY = 0x4 88 89 sysSOL_SOCKET = 0x1 90 sysSO_ATTACH_FILTER = 0x1a 91 92 sizeofKernelSockaddrStorage = 0x80 93 sizeofSockaddrInet6 = 0x1c 94 sizeofInet6Pktinfo = 0x14 95 sizeofIPv6Mtuinfo = 0x20 96 sizeofIPv6FlowlabelReq = 0x20 97 98 sizeofIPv6Mreq = 0x14 99 sizeofGroupReq = 0x88 100 sizeofGroupSourceReq = 0x108 101 102 sizeofICMPv6Filter = 0x20 103 104 sizeofSockFprog = 0x10 105 ) 106 107 type kernelSockaddrStorage struct { 108 Family uint16 109 X__data [126]int8 110 } 111 112 type sockaddrInet6 struct { 113 Family uint16 114 Port uint16 115 Flowinfo uint32 116 Addr [16]byte /* in6_addr */ 117 Scope_id uint32 118 } 119 120 type inet6Pktinfo struct { 121 Addr [16]byte /* in6_addr */ 122 Ifindex int32 123 } 124 125 type ipv6Mtuinfo struct { 126 Addr sockaddrInet6 127 Mtu uint32 128 } 129 130 type ipv6FlowlabelReq struct { 131 Dst [16]byte /* in6_addr */ 132 Label uint32 133 Action uint8 134 Share uint8 135 Flags uint16 136 Expires uint16 137 Linger uint16 138 X__flr_pad uint32 139 } 140 141 type ipv6Mreq struct { 142 Multiaddr [16]byte /* in6_addr */ 143 Ifindex int32 144 } 145 146 type groupReq struct { 147 Interface uint32 148 Pad_cgo_0 [4]byte 149 Group kernelSockaddrStorage 150 } 151 152 type groupSourceReq struct { 153 Interface uint32 154 Pad_cgo_0 [4]byte 155 Group kernelSockaddrStorage 156 Source kernelSockaddrStorage 157 } 158 159 type icmpv6Filter struct { 160 Data [8]uint32 161 } 162 163 type sockFProg struct { 164 Len uint16 165 Filter *sockFilter 166 } 167 168 type sockFilter struct { 169 Code uint16 170 Jt uint8 171 Jf uint8 172 K uint32 173 }