zsys_linux_riscv64.go 3.5 KB

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