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.

99 lines
2.1 KiB

  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_darwin.go
  3. package ipv4
  4. const (
  5. sysIP_OPTIONS = 0x1
  6. sysIP_HDRINCL = 0x2
  7. sysIP_TOS = 0x3
  8. sysIP_TTL = 0x4
  9. sysIP_RECVOPTS = 0x5
  10. sysIP_RECVRETOPTS = 0x6
  11. sysIP_RECVDSTADDR = 0x7
  12. sysIP_RETOPTS = 0x8
  13. sysIP_RECVIF = 0x14
  14. sysIP_STRIPHDR = 0x17
  15. sysIP_RECVTTL = 0x18
  16. sysIP_BOUND_IF = 0x19
  17. sysIP_PKTINFO = 0x1a
  18. sysIP_RECVPKTINFO = 0x1a
  19. sysIP_MULTICAST_IF = 0x9
  20. sysIP_MULTICAST_TTL = 0xa
  21. sysIP_MULTICAST_LOOP = 0xb
  22. sysIP_ADD_MEMBERSHIP = 0xc
  23. sysIP_DROP_MEMBERSHIP = 0xd
  24. sysIP_MULTICAST_VIF = 0xe
  25. sysIP_MULTICAST_IFINDEX = 0x42
  26. sysIP_ADD_SOURCE_MEMBERSHIP = 0x46
  27. sysIP_DROP_SOURCE_MEMBERSHIP = 0x47
  28. sysIP_BLOCK_SOURCE = 0x48
  29. sysIP_UNBLOCK_SOURCE = 0x49
  30. sysMCAST_JOIN_GROUP = 0x50
  31. sysMCAST_LEAVE_GROUP = 0x51
  32. sysMCAST_JOIN_SOURCE_GROUP = 0x52
  33. sysMCAST_LEAVE_SOURCE_GROUP = 0x53
  34. sysMCAST_BLOCK_SOURCE = 0x54
  35. sysMCAST_UNBLOCK_SOURCE = 0x55
  36. sizeofSockaddrStorage = 0x80
  37. sizeofSockaddrInet = 0x10
  38. sizeofInetPktinfo = 0xc
  39. sizeofIPMreq = 0x8
  40. sizeofIPMreqn = 0xc
  41. sizeofIPMreqSource = 0xc
  42. sizeofGroupReq = 0x84
  43. sizeofGroupSourceReq = 0x104
  44. )
  45. type sockaddrStorage struct {
  46. Len uint8
  47. Family uint8
  48. X__ss_pad1 [6]int8
  49. X__ss_align int64
  50. X__ss_pad2 [112]int8
  51. }
  52. type sockaddrInet struct {
  53. Len uint8
  54. Family uint8
  55. Port uint16
  56. Addr [4]byte /* in_addr */
  57. Zero [8]int8
  58. }
  59. type inetPktinfo struct {
  60. Ifindex uint32
  61. Spec_dst [4]byte /* in_addr */
  62. Addr [4]byte /* in_addr */
  63. }
  64. type ipMreq struct {
  65. Multiaddr [4]byte /* in_addr */
  66. Interface [4]byte /* in_addr */
  67. }
  68. type ipMreqn struct {
  69. Multiaddr [4]byte /* in_addr */
  70. Address [4]byte /* in_addr */
  71. Ifindex int32
  72. }
  73. type ipMreqSource struct {
  74. Multiaddr [4]byte /* in_addr */
  75. Sourceaddr [4]byte /* in_addr */
  76. Interface [4]byte /* in_addr */
  77. }
  78. type groupReq struct {
  79. Interface uint32
  80. Pad_cgo_0 [128]byte
  81. }
  82. type groupSourceReq struct {
  83. Interface uint32
  84. Pad_cgo_0 [128]byte
  85. Pad_cgo_1 [128]byte
  86. }