You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
2.7 KiB

  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_solaris.go
  3. package ipv6
  4. const (
  5. sysIPV6_UNICAST_HOPS = 0x5
  6. sysIPV6_MULTICAST_IF = 0x6
  7. sysIPV6_MULTICAST_HOPS = 0x7
  8. sysIPV6_MULTICAST_LOOP = 0x8
  9. sysIPV6_JOIN_GROUP = 0x9
  10. sysIPV6_LEAVE_GROUP = 0xa
  11. sysIPV6_PKTINFO = 0xb
  12. sysIPV6_HOPLIMIT = 0xc
  13. sysIPV6_NEXTHOP = 0xd
  14. sysIPV6_HOPOPTS = 0xe
  15. sysIPV6_DSTOPTS = 0xf
  16. sysIPV6_RTHDR = 0x10
  17. sysIPV6_RTHDRDSTOPTS = 0x11
  18. sysIPV6_RECVPKTINFO = 0x12
  19. sysIPV6_RECVHOPLIMIT = 0x13
  20. sysIPV6_RECVHOPOPTS = 0x14
  21. sysIPV6_RECVRTHDR = 0x16
  22. sysIPV6_RECVRTHDRDSTOPTS = 0x17
  23. sysIPV6_CHECKSUM = 0x18
  24. sysIPV6_RECVTCLASS = 0x19
  25. sysIPV6_USE_MIN_MTU = 0x20
  26. sysIPV6_DONTFRAG = 0x21
  27. sysIPV6_SEC_OPT = 0x22
  28. sysIPV6_SRC_PREFERENCES = 0x23
  29. sysIPV6_RECVPATHMTU = 0x24
  30. sysIPV6_PATHMTU = 0x25
  31. sysIPV6_TCLASS = 0x26
  32. sysIPV6_V6ONLY = 0x27
  33. sysIPV6_RECVDSTOPTS = 0x28
  34. sysMCAST_JOIN_GROUP = 0x29
  35. sysMCAST_LEAVE_GROUP = 0x2a
  36. sysMCAST_BLOCK_SOURCE = 0x2b
  37. sysMCAST_UNBLOCK_SOURCE = 0x2c
  38. sysMCAST_JOIN_SOURCE_GROUP = 0x2d
  39. sysMCAST_LEAVE_SOURCE_GROUP = 0x2e
  40. sysIPV6_PREFER_SRC_HOME = 0x1
  41. sysIPV6_PREFER_SRC_COA = 0x2
  42. sysIPV6_PREFER_SRC_PUBLIC = 0x4
  43. sysIPV6_PREFER_SRC_TMP = 0x8
  44. sysIPV6_PREFER_SRC_NONCGA = 0x10
  45. sysIPV6_PREFER_SRC_CGA = 0x20
  46. sysIPV6_PREFER_SRC_MIPMASK = 0x3
  47. sysIPV6_PREFER_SRC_MIPDEFAULT = 0x1
  48. sysIPV6_PREFER_SRC_TMPMASK = 0xc
  49. sysIPV6_PREFER_SRC_TMPDEFAULT = 0x4
  50. sysIPV6_PREFER_SRC_CGAMASK = 0x30
  51. sysIPV6_PREFER_SRC_CGADEFAULT = 0x10
  52. sysIPV6_PREFER_SRC_MASK = 0x3f
  53. sysIPV6_PREFER_SRC_DEFAULT = 0x15
  54. sysIPV6_BOUND_IF = 0x41
  55. sysIPV6_UNSPEC_SRC = 0x42
  56. sysICMP6_FILTER = 0x1
  57. sizeofSockaddrStorage = 0x100
  58. sizeofSockaddrInet6 = 0x20
  59. sizeofInet6Pktinfo = 0x14
  60. sizeofIPv6Mtuinfo = 0x24
  61. sizeofIPv6Mreq = 0x14
  62. sizeofGroupReq = 0x104
  63. sizeofGroupSourceReq = 0x204
  64. sizeofICMPv6Filter = 0x20
  65. )
  66. type sockaddrStorage struct {
  67. Family uint16
  68. X_ss_pad1 [6]int8
  69. X_ss_align float64
  70. X_ss_pad2 [240]int8
  71. }
  72. type sockaddrInet6 struct {
  73. Family uint16
  74. Port uint16
  75. Flowinfo uint32
  76. Addr [16]byte /* in6_addr */
  77. Scope_id uint32
  78. X__sin6_src_id uint32
  79. }
  80. type inet6Pktinfo struct {
  81. Addr [16]byte /* in6_addr */
  82. Ifindex uint32
  83. }
  84. type ipv6Mtuinfo struct {
  85. Addr sockaddrInet6
  86. Mtu uint32
  87. }
  88. type ipv6Mreq struct {
  89. Multiaddr [16]byte /* in6_addr */
  90. Interface uint32
  91. }
  92. type groupReq struct {
  93. Interface uint32
  94. Pad_cgo_0 [256]byte
  95. }
  96. type groupSourceReq struct {
  97. Interface uint32
  98. Pad_cgo_0 [256]byte
  99. Pad_cgo_1 [256]byte
  100. }
  101. type icmpv6Filter struct {
  102. X__icmp6_filt [8]uint32
  103. }