zsys_dragonfly.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_dragonfly.go
  3. // +build dragonfly
  4. package ipv6
  5. const (
  6. sysIPV6_UNICAST_HOPS = 0x4
  7. sysIPV6_MULTICAST_IF = 0x9
  8. sysIPV6_MULTICAST_HOPS = 0xa
  9. sysIPV6_MULTICAST_LOOP = 0xb
  10. sysIPV6_JOIN_GROUP = 0xc
  11. sysIPV6_LEAVE_GROUP = 0xd
  12. sysIPV6_PORTRANGE = 0xe
  13. sysICMP6_FILTER = 0x12
  14. sysIPV6_CHECKSUM = 0x1a
  15. sysIPV6_V6ONLY = 0x1b
  16. sysIPV6_IPSEC_POLICY = 0x1c
  17. sysIPV6_RTHDRDSTOPTS = 0x23
  18. sysIPV6_RECVPKTINFO = 0x24
  19. sysIPV6_RECVHOPLIMIT = 0x25
  20. sysIPV6_RECVRTHDR = 0x26
  21. sysIPV6_RECVHOPOPTS = 0x27
  22. sysIPV6_RECVDSTOPTS = 0x28
  23. sysIPV6_USE_MIN_MTU = 0x2a
  24. sysIPV6_RECVPATHMTU = 0x2b
  25. sysIPV6_PATHMTU = 0x2c
  26. sysIPV6_PKTINFO = 0x2e
  27. sysIPV6_HOPLIMIT = 0x2f
  28. sysIPV6_NEXTHOP = 0x30
  29. sysIPV6_HOPOPTS = 0x31
  30. sysIPV6_DSTOPTS = 0x32
  31. sysIPV6_RTHDR = 0x33
  32. sysIPV6_RECVTCLASS = 0x39
  33. sysIPV6_AUTOFLOWLABEL = 0x3b
  34. sysIPV6_TCLASS = 0x3d
  35. sysIPV6_DONTFRAG = 0x3e
  36. sysIPV6_PREFER_TEMPADDR = 0x3f
  37. sysIPV6_PORTRANGE_DEFAULT = 0x0
  38. sysIPV6_PORTRANGE_HIGH = 0x1
  39. sysIPV6_PORTRANGE_LOW = 0x2
  40. sysSizeofSockaddrInet6 = 0x1c
  41. sysSizeofInet6Pktinfo = 0x14
  42. sysSizeofIPv6Mtuinfo = 0x20
  43. sysSizeofIPv6Mreq = 0x14
  44. sysSizeofICMPv6Filter = 0x20
  45. )
  46. type sysSockaddrInet6 struct {
  47. Len uint8
  48. Family uint8
  49. Port uint16
  50. Flowinfo uint32
  51. Addr [16]byte /* in6_addr */
  52. Scope_id uint32
  53. }
  54. type sysInet6Pktinfo struct {
  55. Addr [16]byte /* in6_addr */
  56. Ifindex uint32
  57. }
  58. type sysIPv6Mtuinfo struct {
  59. Addr sysSockaddrInet6
  60. Mtu uint32
  61. }
  62. type sysIPv6Mreq struct {
  63. Multiaddr [16]byte /* in6_addr */
  64. Interface uint32
  65. }
  66. type sysICMPv6Filter struct {
  67. Filt [8]uint32
  68. }