zsys_darwin.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_darwin.go
  3. package ipv6
  4. const (
  5. sizeofSockaddrStorage = 0x80
  6. sizeofSockaddrInet6 = 0x1c
  7. sizeofInet6Pktinfo = 0x14
  8. sizeofIPv6Mtuinfo = 0x20
  9. sizeofIPv6Mreq = 0x14
  10. sizeofGroupReq = 0x84
  11. sizeofGroupSourceReq = 0x104
  12. sizeofICMPv6Filter = 0x20
  13. )
  14. type sockaddrStorage struct {
  15. Len uint8
  16. Family uint8
  17. X__ss_pad1 [6]int8
  18. X__ss_align int64
  19. X__ss_pad2 [112]int8
  20. }
  21. type sockaddrInet6 struct {
  22. Len uint8
  23. Family uint8
  24. Port uint16
  25. Flowinfo uint32
  26. Addr [16]byte /* in6_addr */
  27. Scope_id uint32
  28. }
  29. type inet6Pktinfo struct {
  30. Addr [16]byte /* in6_addr */
  31. Ifindex uint32
  32. }
  33. type ipv6Mtuinfo struct {
  34. Addr sockaddrInet6
  35. Mtu uint32
  36. }
  37. type ipv6Mreq struct {
  38. Multiaddr [16]byte /* in6_addr */
  39. Interface uint32
  40. }
  41. type icmpv6Filter struct {
  42. Filt [8]uint32
  43. }
  44. type groupReq struct {
  45. Interface uint32
  46. Pad_cgo_0 [128]byte
  47. }
  48. type groupSourceReq struct {
  49. Interface uint32
  50. Pad_cgo_0 [128]byte
  51. Pad_cgo_1 [128]byte
  52. }