github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/net/internal/socket/zsys_solaris_amd64.go (about)

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs defs_solaris.go
     3  
     4  package socket
     5  
     6  const (
     7  	sysAF_UNSPEC = 0x0
     8  	sysAF_INET   = 0x2
     9  	sysAF_INET6  = 0x1a
    10  
    11  	sysSOCK_RAW = 0x4
    12  )
    13  
    14  type iovec struct {
    15  	Base *int8
    16  	Len  uint64
    17  }
    18  
    19  type msghdr struct {
    20  	Name         *byte
    21  	Namelen      uint32
    22  	Pad_cgo_0    [4]byte
    23  	Iov          *iovec
    24  	Iovlen       int32
    25  	Pad_cgo_1    [4]byte
    26  	Accrights    *int8
    27  	Accrightslen int32
    28  	Pad_cgo_2    [4]byte
    29  }
    30  
    31  type cmsghdr struct {
    32  	Len   uint32
    33  	Level int32
    34  	Type  int32
    35  }
    36  
    37  type sockaddrInet struct {
    38  	Family uint16
    39  	Port   uint16
    40  	Addr   [4]byte /* in_addr */
    41  	Zero   [8]int8
    42  }
    43  
    44  type sockaddrInet6 struct {
    45  	Family         uint16
    46  	Port           uint16
    47  	Flowinfo       uint32
    48  	Addr           [16]byte /* in6_addr */
    49  	Scope_id       uint32
    50  	X__sin6_src_id uint32
    51  }
    52  
    53  const (
    54  	sizeofIovec   = 0x10
    55  	sizeofMsghdr  = 0x30
    56  	sizeofCmsghdr = 0xc
    57  
    58  	sizeofSockaddrInet  = 0x10
    59  	sizeofSockaddrInet6 = 0x20
    60  )