zsys_freebsd_386.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_freebsd.go
  3. package ipv6
  4. const (
  5. sysIPV6_UNICAST_HOPS = 0x4
  6. sysIPV6_MULTICAST_IF = 0x9
  7. sysIPV6_MULTICAST_HOPS = 0xa
  8. sysIPV6_MULTICAST_LOOP = 0xb
  9. sysIPV6_JOIN_GROUP = 0xc
  10. sysIPV6_LEAVE_GROUP = 0xd
  11. sysIPV6_PORTRANGE = 0xe
  12. sysICMP6_FILTER = 0x12
  13. sysIPV6_CHECKSUM = 0x1a
  14. sysIPV6_V6ONLY = 0x1b
  15. sysIPV6_IPSEC_POLICY = 0x1c
  16. sysIPV6_RTHDRDSTOPTS = 0x23
  17. sysIPV6_RECVPKTINFO = 0x24
  18. sysIPV6_RECVHOPLIMIT = 0x25
  19. sysIPV6_RECVRTHDR = 0x26
  20. sysIPV6_RECVHOPOPTS = 0x27
  21. sysIPV6_RECVDSTOPTS = 0x28
  22. sysIPV6_USE_MIN_MTU = 0x2a
  23. sysIPV6_RECVPATHMTU = 0x2b
  24. sysIPV6_PATHMTU = 0x2c
  25. sysIPV6_PKTINFO = 0x2e
  26. sysIPV6_HOPLIMIT = 0x2f
  27. sysIPV6_NEXTHOP = 0x30
  28. sysIPV6_HOPOPTS = 0x31
  29. sysIPV6_DSTOPTS = 0x32
  30. sysIPV6_RTHDR = 0x33
  31. sysIPV6_RECVTCLASS = 0x39
  32. sysIPV6_AUTOFLOWLABEL = 0x3b
  33. sysIPV6_TCLASS = 0x3d
  34. sysIPV6_DONTFRAG = 0x3e
  35. sysIPV6_PREFER_TEMPADDR = 0x3f
  36. sysIPV6_BINDANY = 0x40
  37. sysIPV6_MSFILTER = 0x4a
  38. sysMCAST_JOIN_GROUP = 0x50
  39. sysMCAST_LEAVE_GROUP = 0x51
  40. sysMCAST_JOIN_SOURCE_GROUP = 0x52
  41. sysMCAST_LEAVE_SOURCE_GROUP = 0x53
  42. sysMCAST_BLOCK_SOURCE = 0x54
  43. sysMCAST_UNBLOCK_SOURCE = 0x55
  44. sysIPV6_PORTRANGE_DEFAULT = 0x0
  45. sysIPV6_PORTRANGE_HIGH = 0x1
  46. sysIPV6_PORTRANGE_LOW = 0x2
  47. sizeofSockaddrStorage = 0x80
  48. sizeofSockaddrInet6 = 0x1c
  49. sizeofInet6Pktinfo = 0x14
  50. sizeofIPv6Mtuinfo = 0x20
  51. sizeofIPv6Mreq = 0x14
  52. sizeofGroupReq = 0x84
  53. sizeofGroupSourceReq = 0x104
  54. sizeofICMPv6Filter = 0x20
  55. )
  56. type sockaddrStorage struct {
  57. Len uint8
  58. Family uint8
  59. X__ss_pad1 [6]int8
  60. X__ss_align int64
  61. X__ss_pad2 [112]int8
  62. }
  63. type sockaddrInet6 struct {
  64. Len uint8
  65. Family uint8
  66. Port uint16
  67. Flowinfo uint32
  68. Addr [16]byte /* in6_addr */
  69. Scope_id uint32
  70. }
  71. type inet6Pktinfo struct {
  72. Addr [16]byte /* in6_addr */
  73. Ifindex uint32
  74. }
  75. type ipv6Mtuinfo struct {
  76. Addr sockaddrInet6
  77. Mtu uint32
  78. }
  79. type ipv6Mreq struct {
  80. Multiaddr [16]byte /* in6_addr */
  81. Interface uint32
  82. }
  83. type groupReq struct {
  84. Interface uint32
  85. Group sockaddrStorage
  86. }
  87. type groupSourceReq struct {
  88. Interface uint32
  89. Group sockaddrStorage
  90. Source sockaddrStorage
  91. }
  92. type icmpv6Filter struct {
  93. Filt [8]uint32
  94. }