github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv6/defs_aix.go (about) 1 // Copyright 2019 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 #include <sys/param.h> 13 #include <sys/socket.h> 14 15 #include <netinet/in.h> 16 #include <netinet/icmp6.h> 17 */ 18 import "C" 19 20 const ( 21 sysIPV6_UNICAST_HOPS = C.IPV6_UNICAST_HOPS 22 sysIPV6_MULTICAST_IF = C.IPV6_MULTICAST_IF 23 sysIPV6_MULTICAST_HOPS = C.IPV6_MULTICAST_HOPS 24 sysIPV6_MULTICAST_LOOP = C.IPV6_MULTICAST_LOOP 25 sysIPV6_JOIN_GROUP = C.IPV6_JOIN_GROUP 26 sysIPV6_LEAVE_GROUP = C.IPV6_LEAVE_GROUP 27 sysICMP6_FILTER = C.ICMP6_FILTER 28 29 sysIPV6_CHECKSUM = C.IPV6_CHECKSUM 30 sysIPV6_V6ONLY = C.IPV6_V6ONLY 31 32 sysIPV6_RTHDRDSTOPTS = C.IPV6_RTHDRDSTOPTS 33 34 sysIPV6_RECVPKTINFO = C.IPV6_RECVPKTINFO 35 sysIPV6_RECVHOPLIMIT = C.IPV6_RECVHOPLIMIT 36 sysIPV6_RECVRTHDR = C.IPV6_RECVRTHDR 37 sysIPV6_RECVHOPOPTS = C.IPV6_RECVHOPOPTS 38 sysIPV6_RECVDSTOPTS = C.IPV6_RECVDSTOPTS 39 40 sysIPV6_USE_MIN_MTU = C.IPV6_USE_MIN_MTU 41 sysIPV6_RECVPATHMTU = C.IPV6_RECVPATHMTU 42 sysIPV6_PATHMTU = C.IPV6_PATHMTU 43 44 sysIPV6_PKTINFO = C.IPV6_PKTINFO 45 sysIPV6_HOPLIMIT = C.IPV6_HOPLIMIT 46 sysIPV6_NEXTHOP = C.IPV6_NEXTHOP 47 sysIPV6_HOPOPTS = C.IPV6_HOPOPTS 48 sysIPV6_DSTOPTS = C.IPV6_DSTOPTS 49 sysIPV6_RTHDR = C.IPV6_RTHDR 50 51 sysIPV6_RECVTCLASS = C.IPV6_RECVTCLASS 52 53 sysIPV6_TCLASS = C.IPV6_TCLASS 54 sysIPV6_DONTFRAG = C.IPV6_DONTFRAG 55 56 sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage 57 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 58 sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo 59 sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo 60 61 sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq 62 sizeofGroupReq = C.sizeof_struct_group_req 63 sizeofGroupSourceReq = C.sizeof_struct_group_source_req 64 65 sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter 66 ) 67 68 type sockaddrStorage C.struct_sockaddr_storage 69 70 type sockaddrInet6 C.struct_sockaddr_in6 71 72 type inet6Pktinfo C.struct_in6_pktinfo 73 74 type ipv6Mtuinfo C.struct_ip6_mtuinfo 75 76 type ipv6Mreq C.struct_ipv6_mreq 77 78 type icmpv6Filter C.struct_icmp6_filter 79 80 type groupReq C.struct_group_req 81 82 type groupSourceReq C.struct_group_source_req