zsys_zos_s390x.go raw

   1  // Copyright 2020 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  // Hand edited based on zerrors_zos_s390x.go
   6  // TODO(Bill O'Farrell): auto-generate.
   7  
   8  package ipv6
   9  
  10  const (
  11  	sizeofSockaddrStorage = 128
  12  	sizeofICMPv6Filter    = 32
  13  	sizeofInet6Pktinfo    = 20
  14  	sizeofIPv6Mtuinfo     = 32
  15  	sizeofSockaddrInet6   = 28
  16  	sizeofGroupReq        = 136
  17  	sizeofGroupSourceReq  = 264
  18  )
  19  
  20  type sockaddrStorage struct {
  21  	Len      uint8
  22  	Family   byte
  23  	ss_pad1  [6]byte
  24  	ss_align int64
  25  	ss_pad2  [112]byte
  26  }
  27  
  28  type sockaddrInet6 struct {
  29  	Len      uint8
  30  	Family   uint8
  31  	Port     uint16
  32  	Flowinfo uint32
  33  	Addr     [16]byte
  34  	Scope_id uint32
  35  }
  36  
  37  type inet6Pktinfo struct {
  38  	Addr    [16]byte
  39  	Ifindex uint32
  40  }
  41  
  42  type ipv6Mtuinfo struct {
  43  	Addr sockaddrInet6
  44  	Mtu  uint32
  45  }
  46  
  47  type groupReq struct {
  48  	Interface uint32
  49  	reserved  uint32
  50  	Group     sockaddrStorage
  51  }
  52  
  53  type groupSourceReq struct {
  54  	Interface uint32
  55  	reserved  uint32
  56  	Group     sockaddrStorage
  57  	Source    sockaddrStorage
  58  }
  59  
  60  type icmpv6Filter struct {
  61  	Filt [8]uint32
  62  }
  63