1// Code generated by cmd/cgo -godefs; DO NOT EDIT. 2// cgo -godefs defs_linux.go 3 4// +build riscv64 5 6package ipv4 7 8const ( 9 sysIP_TOS = 0x1 10 sysIP_TTL = 0x2 11 sysIP_HDRINCL = 0x3 12 sysIP_OPTIONS = 0x4 13 sysIP_ROUTER_ALERT = 0x5 14 sysIP_RECVOPTS = 0x6 15 sysIP_RETOPTS = 0x7 16 sysIP_PKTINFO = 0x8 17 sysIP_PKTOPTIONS = 0x9 18 sysIP_MTU_DISCOVER = 0xa 19 sysIP_RECVERR = 0xb 20 sysIP_RECVTTL = 0xc 21 sysIP_RECVTOS = 0xd 22 sysIP_MTU = 0xe 23 sysIP_FREEBIND = 0xf 24 sysIP_TRANSPARENT = 0x13 25 sysIP_RECVRETOPTS = 0x7 26 sysIP_ORIGDSTADDR = 0x14 27 sysIP_RECVORIGDSTADDR = 0x14 28 sysIP_MINTTL = 0x15 29 sysIP_NODEFRAG = 0x16 30 sysIP_UNICAST_IF = 0x32 31 32 sysIP_MULTICAST_IF = 0x20 33 sysIP_MULTICAST_TTL = 0x21 34 sysIP_MULTICAST_LOOP = 0x22 35 sysIP_ADD_MEMBERSHIP = 0x23 36 sysIP_DROP_MEMBERSHIP = 0x24 37 sysIP_UNBLOCK_SOURCE = 0x25 38 sysIP_BLOCK_SOURCE = 0x26 39 sysIP_ADD_SOURCE_MEMBERSHIP = 0x27 40 sysIP_DROP_SOURCE_MEMBERSHIP = 0x28 41 sysIP_MSFILTER = 0x29 42 sysMCAST_JOIN_GROUP = 0x2a 43 sysMCAST_LEAVE_GROUP = 0x2d 44 sysMCAST_JOIN_SOURCE_GROUP = 0x2e 45 sysMCAST_LEAVE_SOURCE_GROUP = 0x2f 46 sysMCAST_BLOCK_SOURCE = 0x2b 47 sysMCAST_UNBLOCK_SOURCE = 0x2c 48 sysMCAST_MSFILTER = 0x30 49 sysIP_MULTICAST_ALL = 0x31 50 51 sysICMP_FILTER = 0x1 52 53 sysSO_EE_ORIGIN_NONE = 0x0 54 sysSO_EE_ORIGIN_LOCAL = 0x1 55 sysSO_EE_ORIGIN_ICMP = 0x2 56 sysSO_EE_ORIGIN_ICMP6 = 0x3 57 sysSO_EE_ORIGIN_TXSTATUS = 0x4 58 sysSO_EE_ORIGIN_TIMESTAMPING = 0x4 59 60 sizeofKernelSockaddrStorage = 0x80 61 sizeofSockaddrInet = 0x10 62 sizeofInetPktinfo = 0xc 63 sizeofSockExtendedErr = 0x10 64 65 sizeofIPMreq = 0x8 66 sizeofIPMreqn = 0xc 67 sizeofIPMreqSource = 0xc 68 sizeofGroupReq = 0x88 69 sizeofGroupSourceReq = 0x108 70 71 sizeofICMPFilter = 0x4 72) 73 74type kernelSockaddrStorage struct { 75 Family uint16 76 X__data [126]int8 77} 78 79type sockaddrInet struct { 80 Family uint16 81 Port uint16 82 Addr [4]byte /* in_addr */ 83 X__pad [8]uint8 84} 85 86type inetPktinfo struct { 87 Ifindex int32 88 Spec_dst [4]byte /* in_addr */ 89 Addr [4]byte /* in_addr */ 90} 91 92type sockExtendedErr struct { 93 Errno uint32 94 Origin uint8 95 Type uint8 96 Code uint8 97 Pad uint8 98 Info uint32 99 Data uint32 100} 101 102type ipMreq struct { 103 Multiaddr [4]byte /* in_addr */ 104 Interface [4]byte /* in_addr */ 105} 106 107type ipMreqn struct { 108 Multiaddr [4]byte /* in_addr */ 109 Address [4]byte /* in_addr */ 110 Ifindex int32 111} 112 113type ipMreqSource struct { 114 Multiaddr uint32 115 Interface uint32 116 Sourceaddr uint32 117} 118 119type groupReq struct { 120 Interface uint32 121 Pad_cgo_0 [4]byte 122 Group kernelSockaddrStorage 123} 124 125type groupSourceReq struct { 126 Interface uint32 127 Pad_cgo_0 [4]byte 128 Group kernelSockaddrStorage 129 Source kernelSockaddrStorage 130} 131 132type icmpFilter struct { 133 Data uint32 134} 135