zsys_netbsd.go 1.5 KB

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