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