github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/net/ipv6/zsys_aix_ppc64.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_aix.go
     3  
     4  // Added for go1.11 compatibility
     5  //go:build aix
     6  // +build aix
     7  
     8  package ipv6
     9  
    10  const (
    11  	sizeofSockaddrStorage = 0x508
    12  	sizeofSockaddrInet6   = 0x1c
    13  	sizeofInet6Pktinfo    = 0x14
    14  	sizeofIPv6Mtuinfo     = 0x20
    15  
    16  	sizeofIPv6Mreq       = 0x14
    17  	sizeofGroupReq       = 0x510
    18  	sizeofGroupSourceReq = 0xa18
    19  
    20  	sizeofICMPv6Filter = 0x20
    21  )
    22  
    23  type sockaddrStorage struct {
    24  	X__ss_len   uint8
    25  	Family      uint8
    26  	X__ss_pad1  [6]uint8
    27  	X__ss_align int64
    28  	X__ss_pad2  [1265]uint8
    29  	Pad_cgo_0   [7]byte
    30  }
    31  
    32  type sockaddrInet6 struct {
    33  	Len      uint8
    34  	Family   uint8
    35  	Port     uint16
    36  	Flowinfo uint32
    37  	Addr     [16]byte /* in6_addr */
    38  	Scope_id uint32
    39  }
    40  
    41  type inet6Pktinfo struct {
    42  	Addr    [16]byte /* in6_addr */
    43  	Ifindex int32
    44  }
    45  
    46  type ipv6Mtuinfo struct {
    47  	Addr sockaddrInet6
    48  	Mtu  uint32
    49  }
    50  
    51  type ipv6Mreq struct {
    52  	Multiaddr [16]byte /* in6_addr */
    53  	Interface uint32
    54  }
    55  
    56  type icmpv6Filter struct {
    57  	Filt [8]uint32
    58  }
    59  
    60  type groupReq struct {
    61  	Interface uint32
    62  	Group     sockaddrStorage
    63  }
    64  
    65  type groupSourceReq struct {
    66  	Interface uint32
    67  	Group     sockaddrStorage
    68  	Source    sockaddrStorage
    69  }