github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/net/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  //go:build ignore
     6  // +build ignore
     7  
     8  // +godefs map struct_in6_addr [16]byte /* in6_addr */
     9  
    10  package ipv6
    11  
    12  /*
    13  #include <sys/param.h>
    14  #include <sys/socket.h>
    15  
    16  #include <netinet/in.h>
    17  #include <netinet/icmp6.h>
    18  */
    19  import "C"
    20  
    21  const (
    22  	sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage
    23  	sizeofSockaddrInet6   = C.sizeof_struct_sockaddr_in6
    24  	sizeofInet6Pktinfo    = C.sizeof_struct_in6_pktinfo
    25  	sizeofIPv6Mtuinfo     = C.sizeof_struct_ip6_mtuinfo
    26  
    27  	sizeofIPv6Mreq       = C.sizeof_struct_ipv6_mreq
    28  	sizeofGroupReq       = C.sizeof_struct_group_req
    29  	sizeofGroupSourceReq = C.sizeof_struct_group_source_req
    30  
    31  	sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
    32  )
    33  
    34  type sockaddrStorage C.struct_sockaddr_storage
    35  
    36  type sockaddrInet6 C.struct_sockaddr_in6
    37  
    38  type inet6Pktinfo C.struct_in6_pktinfo
    39  
    40  type ipv6Mtuinfo C.struct_ip6_mtuinfo
    41  
    42  type ipv6Mreq C.struct_ipv6_mreq
    43  
    44  type icmpv6Filter C.struct_icmp6_filter
    45  
    46  type groupReq C.struct_group_req
    47  
    48  type groupSourceReq C.struct_group_source_req