zsys_freebsd_amd64.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_freebsd.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_SENDSRCADDR = 0x7
  13. sysIP_RETOPTS = 0x8
  14. sysIP_RECVIF = 0x14
  15. sysIP_ONESBCAST = 0x17
  16. sysIP_BINDANY = 0x18
  17. sysIP_RECVTTL = 0x41
  18. sysIP_MINTTL = 0x42
  19. sysIP_DONTFRAG = 0x43
  20. sysIP_RECVTOS = 0x44
  21. sysIP_MULTICAST_IF = 0x9
  22. sysIP_MULTICAST_TTL = 0xa
  23. sysIP_MULTICAST_LOOP = 0xb
  24. sysIP_ADD_MEMBERSHIP = 0xc
  25. sysIP_DROP_MEMBERSHIP = 0xd
  26. sysIP_MULTICAST_VIF = 0xe
  27. sysIP_ADD_SOURCE_MEMBERSHIP = 0x46
  28. sysIP_DROP_SOURCE_MEMBERSHIP = 0x47
  29. sysIP_BLOCK_SOURCE = 0x48
  30. sysIP_UNBLOCK_SOURCE = 0x49
  31. sysMCAST_JOIN_GROUP = 0x50
  32. sysMCAST_LEAVE_GROUP = 0x51
  33. sysMCAST_JOIN_SOURCE_GROUP = 0x52
  34. sysMCAST_LEAVE_SOURCE_GROUP = 0x53
  35. sysMCAST_BLOCK_SOURCE = 0x54
  36. sysMCAST_UNBLOCK_SOURCE = 0x55
  37. sizeofSockaddrStorage = 0x80
  38. sizeofSockaddrInet = 0x10
  39. sizeofIPMreq = 0x8
  40. sizeofIPMreqn = 0xc
  41. sizeofIPMreqSource = 0xc
  42. sizeofGroupReq = 0x88
  43. sizeofGroupSourceReq = 0x108
  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 ipMreq struct {
  60. Multiaddr [4]byte /* in_addr */
  61. Interface [4]byte /* in_addr */
  62. }
  63. type ipMreqn struct {
  64. Multiaddr [4]byte /* in_addr */
  65. Address [4]byte /* in_addr */
  66. Ifindex int32
  67. }
  68. type ipMreqSource struct {
  69. Multiaddr [4]byte /* in_addr */
  70. Sourceaddr [4]byte /* in_addr */
  71. Interface [4]byte /* in_addr */
  72. }
  73. type groupReq struct {
  74. Interface uint32
  75. Pad_cgo_0 [4]byte
  76. Group sockaddrStorage
  77. }
  78. type groupSourceReq struct {
  79. Interface uint32
  80. Pad_cgo_0 [4]byte
  81. Group sockaddrStorage
  82. Source sockaddrStorage
  83. }