defs_freebsd.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 <sys/param.h>
  9. #include <sys/socket.h>
  10. #include <netinet/in.h>
  11. #include <netinet/icmp6.h>
  12. */
  13. import "C"
  14. const (
  15. sysIPV6_UNICAST_HOPS = C.IPV6_UNICAST_HOPS
  16. sysIPV6_MULTICAST_IF = C.IPV6_MULTICAST_IF
  17. sysIPV6_MULTICAST_HOPS = C.IPV6_MULTICAST_HOPS
  18. sysIPV6_MULTICAST_LOOP = C.IPV6_MULTICAST_LOOP
  19. sysIPV6_JOIN_GROUP = C.IPV6_JOIN_GROUP
  20. sysIPV6_LEAVE_GROUP = C.IPV6_LEAVE_GROUP
  21. sysIPV6_PORTRANGE = C.IPV6_PORTRANGE
  22. sysICMP6_FILTER = C.ICMP6_FILTER
  23. sysIPV6_CHECKSUM = C.IPV6_CHECKSUM
  24. sysIPV6_V6ONLY = C.IPV6_V6ONLY
  25. sysIPV6_IPSEC_POLICY = C.IPV6_IPSEC_POLICY
  26. sysIPV6_RTHDRDSTOPTS = C.IPV6_RTHDRDSTOPTS
  27. sysIPV6_RECVPKTINFO = C.IPV6_RECVPKTINFO
  28. sysIPV6_RECVHOPLIMIT = C.IPV6_RECVHOPLIMIT
  29. sysIPV6_RECVRTHDR = C.IPV6_RECVRTHDR
  30. sysIPV6_RECVHOPOPTS = C.IPV6_RECVHOPOPTS
  31. sysIPV6_RECVDSTOPTS = C.IPV6_RECVDSTOPTS
  32. sysIPV6_USE_MIN_MTU = C.IPV6_USE_MIN_MTU
  33. sysIPV6_RECVPATHMTU = C.IPV6_RECVPATHMTU
  34. sysIPV6_PATHMTU = C.IPV6_PATHMTU
  35. sysIPV6_PKTINFO = C.IPV6_PKTINFO
  36. sysIPV6_HOPLIMIT = C.IPV6_HOPLIMIT
  37. sysIPV6_NEXTHOP = C.IPV6_NEXTHOP
  38. sysIPV6_HOPOPTS = C.IPV6_HOPOPTS
  39. sysIPV6_DSTOPTS = C.IPV6_DSTOPTS
  40. sysIPV6_RTHDR = C.IPV6_RTHDR
  41. sysIPV6_RECVTCLASS = C.IPV6_RECVTCLASS
  42. sysIPV6_AUTOFLOWLABEL = C.IPV6_AUTOFLOWLABEL
  43. sysIPV6_TCLASS = C.IPV6_TCLASS
  44. sysIPV6_DONTFRAG = C.IPV6_DONTFRAG
  45. sysIPV6_PREFER_TEMPADDR = C.IPV6_PREFER_TEMPADDR
  46. sysIPV6_BINDANY = C.IPV6_BINDANY
  47. sysIPV6_MSFILTER = C.IPV6_MSFILTER
  48. sysMCAST_JOIN_GROUP = C.MCAST_JOIN_GROUP
  49. sysMCAST_LEAVE_GROUP = C.MCAST_LEAVE_GROUP
  50. sysMCAST_JOIN_SOURCE_GROUP = C.MCAST_JOIN_SOURCE_GROUP
  51. sysMCAST_LEAVE_SOURCE_GROUP = C.MCAST_LEAVE_SOURCE_GROUP
  52. sysMCAST_BLOCK_SOURCE = C.MCAST_BLOCK_SOURCE
  53. sysMCAST_UNBLOCK_SOURCE = C.MCAST_UNBLOCK_SOURCE
  54. sysIPV6_PORTRANGE_DEFAULT = C.IPV6_PORTRANGE_DEFAULT
  55. sysIPV6_PORTRANGE_HIGH = C.IPV6_PORTRANGE_HIGH
  56. sysIPV6_PORTRANGE_LOW = C.IPV6_PORTRANGE_LOW
  57. sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage
  58. sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
  59. sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
  60. sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo
  61. sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
  62. sizeofGroupReq = C.sizeof_struct_group_req
  63. sizeofGroupSourceReq = C.sizeof_struct_group_source_req
  64. sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
  65. )
  66. type sockaddrStorage C.struct_sockaddr_storage
  67. type sockaddrInet6 C.struct_sockaddr_in6
  68. type inet6Pktinfo C.struct_in6_pktinfo
  69. type ipv6Mtuinfo C.struct_ip6_mtuinfo
  70. type ipv6Mreq C.struct_ipv6_mreq
  71. type groupReq C.struct_group_req
  72. type groupSourceReq C.struct_group_source_req
  73. type icmpv6Filter C.struct_icmp6_filter