zsys_linux_riscv64.go 2.9 KB

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