github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv6/defs_darwin.go (about) 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 5 // +build ignore 6 7 // +godefs map struct_in6_addr [16]byte /* in6_addr */ 8 9 package ipv6 10 11 /* 12 #define __APPLE_USE_RFC_3542 13 #include <netinet/in.h> 14 #include <netinet/icmp6.h> 15 */ 16 import "C" 17 18 const ( 19 sysIPV6_UNICAST_HOPS = C.IPV6_UNICAST_HOPS 20 sysIPV6_MULTICAST_IF = C.IPV6_MULTICAST_IF 21 sysIPV6_MULTICAST_HOPS = C.IPV6_MULTICAST_HOPS 22 sysIPV6_MULTICAST_LOOP = C.IPV6_MULTICAST_LOOP 23 sysIPV6_JOIN_GROUP = C.IPV6_JOIN_GROUP 24 sysIPV6_LEAVE_GROUP = C.IPV6_LEAVE_GROUP 25 26 sysIPV6_PORTRANGE = C.IPV6_PORTRANGE 27 sysICMP6_FILTER = C.ICMP6_FILTER 28 sysIPV6_2292PKTINFO = C.IPV6_2292PKTINFO 29 sysIPV6_2292HOPLIMIT = C.IPV6_2292HOPLIMIT 30 sysIPV6_2292NEXTHOP = C.IPV6_2292NEXTHOP 31 sysIPV6_2292HOPOPTS = C.IPV6_2292HOPOPTS 32 sysIPV6_2292DSTOPTS = C.IPV6_2292DSTOPTS 33 sysIPV6_2292RTHDR = C.IPV6_2292RTHDR 34 35 sysIPV6_2292PKTOPTIONS = C.IPV6_2292PKTOPTIONS 36 37 sysIPV6_CHECKSUM = C.IPV6_CHECKSUM 38 sysIPV6_V6ONLY = C.IPV6_V6ONLY 39 40 sysIPV6_IPSEC_POLICY = C.IPV6_IPSEC_POLICY 41 42 sysIPV6_RECVTCLASS = C.IPV6_RECVTCLASS 43 sysIPV6_TCLASS = C.IPV6_TCLASS 44 45 sysIPV6_RTHDRDSTOPTS = C.IPV6_RTHDRDSTOPTS 46 47 sysIPV6_RECVPKTINFO = C.IPV6_RECVPKTINFO 48 49 sysIPV6_RECVHOPLIMIT = C.IPV6_RECVHOPLIMIT 50 sysIPV6_RECVRTHDR = C.IPV6_RECVRTHDR 51 sysIPV6_RECVHOPOPTS = C.IPV6_RECVHOPOPTS 52 sysIPV6_RECVDSTOPTS = C.IPV6_RECVDSTOPTS 53 54 sysIPV6_USE_MIN_MTU = C.IPV6_USE_MIN_MTU 55 sysIPV6_RECVPATHMTU = C.IPV6_RECVPATHMTU 56 57 sysIPV6_PATHMTU = C.IPV6_PATHMTU 58 59 sysIPV6_PKTINFO = C.IPV6_PKTINFO 60 sysIPV6_HOPLIMIT = C.IPV6_HOPLIMIT 61 sysIPV6_NEXTHOP = C.IPV6_NEXTHOP 62 sysIPV6_HOPOPTS = C.IPV6_HOPOPTS 63 sysIPV6_DSTOPTS = C.IPV6_DSTOPTS 64 sysIPV6_RTHDR = C.IPV6_RTHDR 65 66 sysIPV6_AUTOFLOWLABEL = C.IPV6_AUTOFLOWLABEL 67 68 sysIPV6_DONTFRAG = C.IPV6_DONTFRAG 69 70 sysIPV6_PREFER_TEMPADDR = C.IPV6_PREFER_TEMPADDR 71 72 sysIPV6_MSFILTER = C.IPV6_MSFILTER 73 sysMCAST_JOIN_GROUP = C.MCAST_JOIN_GROUP 74 sysMCAST_LEAVE_GROUP = C.MCAST_LEAVE_GROUP 75 sysMCAST_JOIN_SOURCE_GROUP = C.MCAST_JOIN_SOURCE_GROUP 76 sysMCAST_LEAVE_SOURCE_GROUP = C.MCAST_LEAVE_SOURCE_GROUP 77 sysMCAST_BLOCK_SOURCE = C.MCAST_BLOCK_SOURCE 78 sysMCAST_UNBLOCK_SOURCE = C.MCAST_UNBLOCK_SOURCE 79 80 sysIPV6_BOUND_IF = C.IPV6_BOUND_IF 81 82 sysIPV6_PORTRANGE_DEFAULT = C.IPV6_PORTRANGE_DEFAULT 83 sysIPV6_PORTRANGE_HIGH = C.IPV6_PORTRANGE_HIGH 84 sysIPV6_PORTRANGE_LOW = C.IPV6_PORTRANGE_LOW 85 86 sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage 87 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 88 sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo 89 sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo 90 91 sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq 92 sizeofGroupReq = C.sizeof_struct_group_req 93 sizeofGroupSourceReq = C.sizeof_struct_group_source_req 94 95 sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter 96 ) 97 98 type sockaddrStorage C.struct_sockaddr_storage 99 100 type sockaddrInet6 C.struct_sockaddr_in6 101 102 type inet6Pktinfo C.struct_in6_pktinfo 103 104 type ipv6Mtuinfo C.struct_ip6_mtuinfo 105 106 type ipv6Mreq C.struct_ipv6_mreq 107 108 type icmpv6Filter C.struct_icmp6_filter 109 110 type groupReq C.struct_group_req 111 112 type groupSourceReq C.struct_group_source_req