github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/internal/socket/zsys_netbsd_amd64.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  uint64
     9  }
    10  
    11  type msghdr struct {
    12  	Name       *byte
    13  	Namelen    uint32
    14  	Pad_cgo_0  [4]byte
    15  	Iov        *iovec
    16  	Iovlen     int32
    17  	Pad_cgo_1  [4]byte
    18  	Control    *byte
    19  	Controllen uint32
    20  	Flags      int32
    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   uint32
    31  	Level int32
    32  	Type  int32
    33  }
    34  
    35  type sockaddrInet struct {
    36  	Len    uint8
    37  	Family uint8
    38  	Port   uint16
    39  	Addr   [4]byte /* in_addr */
    40  	Zero   [8]int8
    41  }
    42  
    43  type sockaddrInet6 struct {
    44  	Len      uint8
    45  	Family   uint8
    46  	Port     uint16
    47  	Flowinfo uint32
    48  	Addr     [16]byte /* in6_addr */
    49  	Scope_id uint32
    50  }
    51  
    52  const (
    53  	sizeofIovec   = 0x10
    54  	sizeofMsghdr  = 0x30
    55  	sizeofMmsghdr = 0x40
    56  	sizeofCmsghdr = 0xc
    57  
    58  	sizeofSockaddrInet  = 0x10
    59  	sizeofSockaddrInet6 = 0x1c
    60  )