zsys_darwin.go 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_darwin.go
  3. package ipv6
  4. const (
  5. sysIPV6_UNICAST_HOPS = 0x4
  6. sysIPV6_MULTICAST_IF = 0x9
  7. sysIPV6_MULTICAST_HOPS = 0xa
  8. sysIPV6_MULTICAST_LOOP = 0xb
  9. sysIPV6_JOIN_GROUP = 0xc
  10. sysIPV6_LEAVE_GROUP = 0xd
  11. sysIPV6_PORTRANGE = 0xe
  12. sysICMP6_FILTER = 0x12
  13. sysIPV6_2292PKTINFO = 0x13
  14. sysIPV6_2292HOPLIMIT = 0x14
  15. sysIPV6_2292NEXTHOP = 0x15
  16. sysIPV6_2292HOPOPTS = 0x16
  17. sysIPV6_2292DSTOPTS = 0x17
  18. sysIPV6_2292RTHDR = 0x18
  19. sysIPV6_2292PKTOPTIONS = 0x19
  20. sysIPV6_CHECKSUM = 0x1a
  21. sysIPV6_V6ONLY = 0x1b
  22. sysIPV6_IPSEC_POLICY = 0x1c
  23. sysIPV6_RECVTCLASS = 0x23
  24. sysIPV6_TCLASS = 0x24
  25. sysIPV6_RTHDRDSTOPTS = 0x39
  26. sysIPV6_RECVPKTINFO = 0x3d
  27. sysIPV6_RECVHOPLIMIT = 0x25
  28. sysIPV6_RECVRTHDR = 0x26
  29. sysIPV6_RECVHOPOPTS = 0x27
  30. sysIPV6_RECVDSTOPTS = 0x28
  31. sysIPV6_USE_MIN_MTU = 0x2a
  32. sysIPV6_RECVPATHMTU = 0x2b
  33. sysIPV6_PATHMTU = 0x2c
  34. sysIPV6_PKTINFO = 0x2e
  35. sysIPV6_HOPLIMIT = 0x2f
  36. sysIPV6_NEXTHOP = 0x30
  37. sysIPV6_HOPOPTS = 0x31
  38. sysIPV6_DSTOPTS = 0x32
  39. sysIPV6_RTHDR = 0x33
  40. sysIPV6_AUTOFLOWLABEL = 0x3b
  41. sysIPV6_DONTFRAG = 0x3e
  42. sysIPV6_PREFER_TEMPADDR = 0x3f
  43. sysIPV6_MSFILTER = 0x4a
  44. sysMCAST_JOIN_GROUP = 0x50
  45. sysMCAST_LEAVE_GROUP = 0x51
  46. sysMCAST_JOIN_SOURCE_GROUP = 0x52
  47. sysMCAST_LEAVE_SOURCE_GROUP = 0x53
  48. sysMCAST_BLOCK_SOURCE = 0x54
  49. sysMCAST_UNBLOCK_SOURCE = 0x55
  50. sysIPV6_BOUND_IF = 0x7d
  51. sysIPV6_PORTRANGE_DEFAULT = 0x0
  52. sysIPV6_PORTRANGE_HIGH = 0x1
  53. sysIPV6_PORTRANGE_LOW = 0x2
  54. sizeofSockaddrStorage = 0x80
  55. sizeofSockaddrInet6 = 0x1c
  56. sizeofInet6Pktinfo = 0x14
  57. sizeofIPv6Mtuinfo = 0x20
  58. sizeofIPv6Mreq = 0x14
  59. sizeofGroupReq = 0x84
  60. sizeofGroupSourceReq = 0x104
  61. sizeofICMPv6Filter = 0x20
  62. )
  63. type sockaddrStorage struct {
  64. Len uint8
  65. Family uint8
  66. X__ss_pad1 [6]int8
  67. X__ss_align int64
  68. X__ss_pad2 [112]int8
  69. }
  70. type sockaddrInet6 struct {
  71. Len uint8
  72. Family uint8
  73. Port uint16
  74. Flowinfo uint32
  75. Addr [16]byte /* in6_addr */
  76. Scope_id uint32
  77. }
  78. type inet6Pktinfo struct {
  79. Addr [16]byte /* in6_addr */
  80. Ifindex uint32
  81. }
  82. type ipv6Mtuinfo struct {
  83. Addr sockaddrInet6
  84. Mtu uint32
  85. }
  86. type ipv6Mreq struct {
  87. Multiaddr [16]byte /* in6_addr */
  88. Interface uint32
  89. }
  90. type icmpv6Filter struct {
  91. Filt [8]uint32
  92. }
  93. type groupReq struct {
  94. Interface uint32
  95. Pad_cgo_0 [128]byte
  96. }
  97. type groupSourceReq struct {
  98. Interface uint32
  99. Pad_cgo_0 [128]byte
  100. Pad_cgo_1 [128]byte
  101. }