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.

88 lines
1.6 KiB

  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_dragonfly.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_PORTRANGE_DEFAULT = 0x0
  37. sysIPV6_PORTRANGE_HIGH = 0x1
  38. sysIPV6_PORTRANGE_LOW = 0x2
  39. sizeofSockaddrInet6 = 0x1c
  40. sizeofInet6Pktinfo = 0x14
  41. sizeofIPv6Mtuinfo = 0x20
  42. sizeofIPv6Mreq = 0x14
  43. sizeofICMPv6Filter = 0x20
  44. )
  45. type sockaddrInet6 struct {
  46. Len uint8
  47. Family uint8
  48. Port uint16
  49. Flowinfo uint32
  50. Addr [16]byte /* in6_addr */
  51. Scope_id uint32
  52. }
  53. type inet6Pktinfo struct {
  54. Addr [16]byte /* in6_addr */
  55. Ifindex uint32
  56. }
  57. type ipv6Mtuinfo struct {
  58. Addr sockaddrInet6
  59. Mtu uint32
  60. }
  61. type ipv6Mreq struct {
  62. Multiaddr [16]byte /* in6_addr */
  63. Interface uint32
  64. }
  65. type icmpv6Filter struct {
  66. Filt [8]uint32
  67. }