defs_solaris.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build ignore
  5. // +godefs map struct_in6_addr [16]byte /* in6_addr */
  6. package ipv6
  7. /*
  8. #include <netinet/in.h>
  9. #include <netinet/icmp6.h>
  10. */
  11. import "C"
  12. const (
  13. sysIPV6_UNICAST_HOPS = C.IPV6_UNICAST_HOPS
  14. sysIPV6_MULTICAST_IF = C.IPV6_MULTICAST_IF
  15. sysIPV6_MULTICAST_HOPS = C.IPV6_MULTICAST_HOPS
  16. sysIPV6_MULTICAST_LOOP = C.IPV6_MULTICAST_LOOP
  17. sysIPV6_JOIN_GROUP = C.IPV6_JOIN_GROUP
  18. sysIPV6_LEAVE_GROUP = C.IPV6_LEAVE_GROUP
  19. sysIPV6_PKTINFO = C.IPV6_PKTINFO
  20. sysIPV6_HOPLIMIT = C.IPV6_HOPLIMIT
  21. sysIPV6_NEXTHOP = C.IPV6_NEXTHOP
  22. sysIPV6_HOPOPTS = C.IPV6_HOPOPTS
  23. sysIPV6_DSTOPTS = C.IPV6_DSTOPTS
  24. sysIPV6_RTHDR = C.IPV6_RTHDR
  25. sysIPV6_RTHDRDSTOPTS = C.IPV6_RTHDRDSTOPTS
  26. sysIPV6_RECVPKTINFO = C.IPV6_RECVPKTINFO
  27. sysIPV6_RECVHOPLIMIT = C.IPV6_RECVHOPLIMIT
  28. sysIPV6_RECVHOPOPTS = C.IPV6_RECVHOPOPTS
  29. sysIPV6_RECVRTHDR = C.IPV6_RECVRTHDR
  30. sysIPV6_RECVRTHDRDSTOPTS = C.IPV6_RECVRTHDRDSTOPTS
  31. sysIPV6_CHECKSUM = C.IPV6_CHECKSUM
  32. sysIPV6_RECVTCLASS = C.IPV6_RECVTCLASS
  33. sysIPV6_USE_MIN_MTU = C.IPV6_USE_MIN_MTU
  34. sysIPV6_DONTFRAG = C.IPV6_DONTFRAG
  35. sysIPV6_SEC_OPT = C.IPV6_SEC_OPT
  36. sysIPV6_SRC_PREFERENCES = C.IPV6_SRC_PREFERENCES
  37. sysIPV6_RECVPATHMTU = C.IPV6_RECVPATHMTU
  38. sysIPV6_PATHMTU = C.IPV6_PATHMTU
  39. sysIPV6_TCLASS = C.IPV6_TCLASS
  40. sysIPV6_V6ONLY = C.IPV6_V6ONLY
  41. sysIPV6_RECVDSTOPTS = C.IPV6_RECVDSTOPTS
  42. sysIPV6_PREFER_SRC_HOME = C.IPV6_PREFER_SRC_HOME
  43. sysIPV6_PREFER_SRC_COA = C.IPV6_PREFER_SRC_COA
  44. sysIPV6_PREFER_SRC_PUBLIC = C.IPV6_PREFER_SRC_PUBLIC
  45. sysIPV6_PREFER_SRC_TMP = C.IPV6_PREFER_SRC_TMP
  46. sysIPV6_PREFER_SRC_NONCGA = C.IPV6_PREFER_SRC_NONCGA
  47. sysIPV6_PREFER_SRC_CGA = C.IPV6_PREFER_SRC_CGA
  48. sysIPV6_PREFER_SRC_MIPMASK = C.IPV6_PREFER_SRC_MIPMASK
  49. sysIPV6_PREFER_SRC_MIPDEFAULT = C.IPV6_PREFER_SRC_MIPDEFAULT
  50. sysIPV6_PREFER_SRC_TMPMASK = C.IPV6_PREFER_SRC_TMPMASK
  51. sysIPV6_PREFER_SRC_TMPDEFAULT = C.IPV6_PREFER_SRC_TMPDEFAULT
  52. sysIPV6_PREFER_SRC_CGAMASK = C.IPV6_PREFER_SRC_CGAMASK
  53. sysIPV6_PREFER_SRC_CGADEFAULT = C.IPV6_PREFER_SRC_CGADEFAULT
  54. sysIPV6_PREFER_SRC_MASK = C.IPV6_PREFER_SRC_MASK
  55. sysIPV6_PREFER_SRC_DEFAULT = C.IPV6_PREFER_SRC_DEFAULT
  56. sysIPV6_BOUND_IF = C.IPV6_BOUND_IF
  57. sysIPV6_UNSPEC_SRC = C.IPV6_UNSPEC_SRC
  58. sysICMP6_FILTER = C.ICMP6_FILTER
  59. sysSizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
  60. sysSizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
  61. sysSizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo
  62. sysSizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
  63. sysSizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
  64. )
  65. type sysSockaddrInet6 C.struct_sockaddr_in6
  66. type sysInet6Pktinfo C.struct_in6_pktinfo
  67. type sysIPv6Mtuinfo C.struct_ip6_mtuinfo
  68. type sysIPv6Mreq C.struct_ipv6_mreq
  69. type sysICMPv6Filter C.struct_icmp6_filter