zsys_linux_amd64.go 3.7 KB

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