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

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