zsys_openbsd.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_openbsd.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_RTHDRDSTOPTS = 0x23
  16. sysIPV6_RECVPKTINFO = 0x24
  17. sysIPV6_RECVHOPLIMIT = 0x25
  18. sysIPV6_RECVRTHDR = 0x26
  19. sysIPV6_RECVHOPOPTS = 0x27
  20. sysIPV6_RECVDSTOPTS = 0x28
  21. sysIPV6_USE_MIN_MTU = 0x2a
  22. sysIPV6_RECVPATHMTU = 0x2b
  23. sysIPV6_PATHMTU = 0x2c
  24. sysIPV6_PKTINFO = 0x2e
  25. sysIPV6_HOPLIMIT = 0x2f
  26. sysIPV6_NEXTHOP = 0x30
  27. sysIPV6_HOPOPTS = 0x31
  28. sysIPV6_DSTOPTS = 0x32
  29. sysIPV6_RTHDR = 0x33
  30. sysIPV6_AUTH_LEVEL = 0x35
  31. sysIPV6_ESP_TRANS_LEVEL = 0x36
  32. sysIPV6_ESP_NETWORK_LEVEL = 0x37
  33. sysIPSEC6_OUTSA = 0x38
  34. sysIPV6_RECVTCLASS = 0x39
  35. sysIPV6_AUTOFLOWLABEL = 0x3b
  36. sysIPV6_IPCOMP_LEVEL = 0x3c
  37. sysIPV6_TCLASS = 0x3d
  38. sysIPV6_DONTFRAG = 0x3e
  39. sysIPV6_PIPEX = 0x3f
  40. sysIPV6_RTABLE = 0x1021
  41. sysIPV6_PORTRANGE_DEFAULT = 0x0
  42. sysIPV6_PORTRANGE_HIGH = 0x1
  43. sysIPV6_PORTRANGE_LOW = 0x2
  44. sizeofSockaddrInet6 = 0x1c
  45. sizeofInet6Pktinfo = 0x14
  46. sizeofIPv6Mtuinfo = 0x20
  47. sizeofIPv6Mreq = 0x14
  48. sizeofICMPv6Filter = 0x20
  49. )
  50. type sockaddrInet6 struct {
  51. Len uint8
  52. Family uint8
  53. Port uint16
  54. Flowinfo uint32
  55. Addr [16]byte /* in6_addr */
  56. Scope_id uint32
  57. }
  58. type inet6Pktinfo struct {
  59. Addr [16]byte /* in6_addr */
  60. Ifindex uint32
  61. }
  62. type ipv6Mtuinfo struct {
  63. Addr sockaddrInet6
  64. Mtu uint32
  65. }
  66. type ipv6Mreq struct {
  67. Multiaddr [16]byte /* in6_addr */
  68. Interface uint32
  69. }
  70. type icmpv6Filter struct {
  71. Filt [8]uint32
  72. }