1 // Copyright 2017 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.
9 func (h *msghdr) pack(vs []iovec, bs [][]byte, oob []byte, sa []byte) {
18 h.Name = (*byte)(unsafe.Pointer(&sa[0]))
19 h.Namelen = uint32(len(sa))
23 func (h *msghdr) name() []byte {
24 if h.Name != nil && h.Namelen > 0 {
25 return (*[sizeofSockaddrInet6]byte)(unsafe.Pointer(h.Name))[:h.Namelen]
30 func (h *msghdr) controllen() int {
31 return int(h.Controllen)
34 func (h *msghdr) flags() int {