github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/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  // +build aix
     6  
     7  package ipv6
     8  
     9  const (
    10  	sysIPV6_UNICAST_HOPS   = 0x4
    11  	sysIPV6_MULTICAST_IF   = 0x9
    12  	sysIPV6_MULTICAST_HOPS = 0xa
    13  	sysIPV6_MULTICAST_LOOP = 0xb
    14  	sysIPV6_JOIN_GROUP     = 0xc
    15  	sysIPV6_LEAVE_GROUP    = 0xd
    16  	sysICMP6_FILTER        = 0x26
    17  
    18  	sysIPV6_CHECKSUM = 0x27
    19  	sysIPV6_V6ONLY   = 0x25
    20  
    21  	sysIPV6_RTHDRDSTOPTS = 0x37
    22  
    23  	sysIPV6_RECVPKTINFO  = 0x23
    24  	sysIPV6_RECVHOPLIMIT = 0x29
    25  	sysIPV6_RECVRTHDR    = 0x33
    26  	sysIPV6_RECVHOPOPTS  = 0x35
    27  	sysIPV6_RECVDSTOPTS  = 0x38
    28  
    29  	sysIPV6_USE_MIN_MTU = 0x2c
    30  	sysIPV6_RECVPATHMTU = 0x2f
    31  	sysIPV6_PATHMTU     = 0x2e
    32  
    33  	sysIPV6_PKTINFO  = 0x21
    34  	sysIPV6_HOPLIMIT = 0x28
    35  	sysIPV6_NEXTHOP  = 0x30
    36  	sysIPV6_HOPOPTS  = 0x34
    37  	sysIPV6_DSTOPTS  = 0x36
    38  	sysIPV6_RTHDR    = 0x32
    39  
    40  	sysIPV6_RECVTCLASS = 0x2a
    41  
    42  	sysIPV6_TCLASS   = 0x2b
    43  	sysIPV6_DONTFRAG = 0x2d
    44  
    45  	sizeofSockaddrStorage = 0x508
    46  	sizeofSockaddrInet6   = 0x1c
    47  	sizeofInet6Pktinfo    = 0x14
    48  	sizeofIPv6Mtuinfo     = 0x20
    49  
    50  	sizeofIPv6Mreq       = 0x14
    51  	sizeofGroupReq       = 0x510
    52  	sizeofGroupSourceReq = 0xa18
    53  
    54  	sizeofICMPv6Filter = 0x20
    55  )
    56  
    57  type sockaddrStorage struct {
    58  	X__ss_len   uint8
    59  	Family      uint8
    60  	X__ss_pad1  [6]uint8
    61  	X__ss_align int64
    62  	X__ss_pad2  [1265]uint8
    63  	Pad_cgo_0   [7]byte
    64  }
    65  
    66  type sockaddrInet6 struct {
    67  	Len      uint8
    68  	Family   uint8
    69  	Port     uint16
    70  	Flowinfo uint32
    71  	Addr     [16]byte /* in6_addr */
    72  	Scope_id uint32
    73  }
    74  
    75  type inet6Pktinfo struct {
    76  	Addr    [16]byte /* in6_addr */
    77  	Ifindex int32
    78  }
    79  
    80  type ipv6Mtuinfo struct {
    81  	Addr sockaddrInet6
    82  	Mtu  uint32
    83  }
    84  
    85  type ipv6Mreq struct {
    86  	Multiaddr [16]byte /* in6_addr */
    87  	Interface uint32
    88  }
    89  
    90  type icmpv6Filter struct {
    91  	Filt [8]uint32
    92  }
    93  
    94  type groupReq struct {
    95  	Interface uint32
    96  	Group     sockaddrStorage
    97  }
    98  
    99  type groupSourceReq struct {
   100  	Interface uint32
   101  	Group     sockaddrStorage
   102  	Source    sockaddrStorage
   103  }