zsys_darwin.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_darwin.go
  3. package ipv4
  4. const (
  5. sizeofSockaddrStorage = 0x80
  6. sizeofSockaddrInet = 0x10
  7. sizeofInetPktinfo = 0xc
  8. sizeofIPMreq = 0x8
  9. sizeofIPMreqSource = 0xc
  10. sizeofGroupReq = 0x84
  11. sizeofGroupSourceReq = 0x104
  12. )
  13. type sockaddrStorage struct {
  14. Len uint8
  15. Family uint8
  16. X__ss_pad1 [6]int8
  17. X__ss_align int64
  18. X__ss_pad2 [112]int8
  19. }
  20. type sockaddrInet struct {
  21. Len uint8
  22. Family uint8
  23. Port uint16
  24. Addr [4]byte /* in_addr */
  25. Zero [8]int8
  26. }
  27. type inetPktinfo struct {
  28. Ifindex uint32
  29. Spec_dst [4]byte /* in_addr */
  30. Addr [4]byte /* in_addr */
  31. }
  32. type ipMreq struct {
  33. Multiaddr [4]byte /* in_addr */
  34. Interface [4]byte /* in_addr */
  35. }
  36. type ipMreqSource struct {
  37. Multiaddr [4]byte /* in_addr */
  38. Sourceaddr [4]byte /* in_addr */
  39. Interface [4]byte /* in_addr */
  40. }
  41. type groupReq struct {
  42. Interface uint32
  43. Pad_cgo_0 [128]byte
  44. }
  45. type groupSourceReq struct {
  46. Interface uint32
  47. Pad_cgo_0 [128]byte
  48. Pad_cgo_1 [128]byte
  49. }