github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/internal/socket/zsys_linux_arm64.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_linux.go
     3  
     4  package socket
     5  
     6  type iovec struct {
     7  	Base *byte
     8  	Len  uint64
     9  }
    10  
    11  type msghdr struct {
    12  	Name       *byte
    13  	Namelen    uint32
    14  	Pad_cgo_0  [4]byte
    15  	Iov        *iovec
    16  	Iovlen     uint64
    17  	Control    *byte
    18  	Controllen uint64
    19  	Flags      int32
    20  	Pad_cgo_1  [4]byte
    21  }
    22  
    23  type mmsghdr struct {
    24  	Hdr       msghdr
    25  	Len       uint32
    26  	Pad_cgo_0 [4]byte
    27  }
    28  
    29  type cmsghdr struct {
    30  	Len   uint64
    31  	Level int32
    32  	Type  int32
    33  }
    34  
    35  type sockaddrInet struct {
    36  	Family uint16
    37  	Port   uint16
    38  	Addr   [4]byte /* in_addr */
    39  	X__pad [8]uint8
    40  }
    41  
    42  type sockaddrInet6 struct {
    43  	Family   uint16
    44  	Port     uint16
    45  	Flowinfo uint32
    46  	Addr     [16]byte /* in6_addr */
    47  	Scope_id uint32
    48  }
    49  
    50  const (
    51  	sizeofIovec   = 0x10
    52  	sizeofMsghdr  = 0x38
    53  	sizeofMmsghdr = 0x40
    54  	sizeofCmsghdr = 0x10
    55  
    56  	sizeofSockaddrInet  = 0x10
    57  	sizeofSockaddrInet6 = 0x1c
    58  )