zsys_linux_386.go 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // Code generated by cmd/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. sizeofKernelSockaddrStorage = 0x80
  74. sizeofSockaddrInet6 = 0x1c
  75. sizeofInet6Pktinfo = 0x14
  76. sizeofIPv6Mtuinfo = 0x20
  77. sizeofIPv6FlowlabelReq = 0x20
  78. sizeofIPv6Mreq = 0x14
  79. sizeofGroupReq = 0x84
  80. sizeofGroupSourceReq = 0x104
  81. sizeofICMPv6Filter = 0x20
  82. )
  83. type kernelSockaddrStorage struct {
  84. Family uint16
  85. X__data [126]int8
  86. }
  87. type sockaddrInet6 struct {
  88. Family uint16
  89. Port uint16
  90. Flowinfo uint32
  91. Addr [16]byte /* in6_addr */
  92. Scope_id uint32
  93. }
  94. type inet6Pktinfo struct {
  95. Addr [16]byte /* in6_addr */
  96. Ifindex int32
  97. }
  98. type ipv6Mtuinfo struct {
  99. Addr sockaddrInet6
  100. Mtu uint32
  101. }
  102. type ipv6FlowlabelReq struct {
  103. Dst [16]byte /* in6_addr */
  104. Label uint32
  105. Action uint8
  106. Share uint8
  107. Flags uint16
  108. Expires uint16
  109. Linger uint16
  110. X__flr_pad uint32
  111. }
  112. type ipv6Mreq struct {
  113. Multiaddr [16]byte /* in6_addr */
  114. Ifindex int32
  115. }
  116. type groupReq struct {
  117. Interface uint32
  118. Group kernelSockaddrStorage
  119. }
  120. type groupSourceReq struct {
  121. Interface uint32
  122. Group kernelSockaddrStorage
  123. Source kernelSockaddrStorage
  124. }
  125. type icmpv6Filter struct {
  126. Data [8]uint32
  127. }