zsys_freebsd_386.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Code generated by cmd/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 = 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 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. Group sockaddrStorage
  76. }
  77. type groupSourceReq struct {
  78. Interface uint32
  79. Group sockaddrStorage
  80. Source sockaddrStorage
  81. }