Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 276 for Cmsghdr (0.12 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix.go

    func ParseOneSocketControlMessage(b []byte) (hdr Cmsghdr, data []byte, remainder []byte, err error) {
    	h, dbuf, err := socketControlMessageHeaderAndData(b)
    	if err != nil {
    		return Cmsghdr{}, nil, nil, err
    	}
    	if i := cmsgAlignOf(int(h.Len)); i < len(b) {
    		remainder = b[i:]
    	}
    	return *h, dbuf, remainder, nil
    }
    
    func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. src/syscall/sockcmsg_unix.go

    	return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
    }
    
    func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer {
    	return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)) + offset)
    }
    
    // SocketControlMessage represents a socket control message.
    type SocketControlMessage struct {
    	Header Cmsghdr
    	Data   []byte
    }
    
    // ParseSocketControlMessage parses b as an array of socket control
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_zos.go

    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_IP
    	h.Type = IP_PKTINFO
    	h.SetLen(CmsgLen(SizeofInet4Pktinfo))
    	*(*Inet4Pktinfo)(h.data(0)) = *info
    	return b
    }
    
    // PktInfo6 encodes Inet6Pktinfo into a socket control message of type IPV6_PKTINFO.
    func PktInfo6(info *Inet6Pktinfo) []byte {
    	b := make([]byte, CmsgSpace(SizeofInet6Pktinfo))
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_IPV6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_linux.go

    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_IP
    	h.Type = IP_PKTINFO
    	h.SetLen(CmsgLen(SizeofInet4Pktinfo))
    	*(*Inet4Pktinfo)(h.data(0)) = *info
    	return b
    }
    
    // PktInfo6 encodes Inet6Pktinfo into a socket control message of type IPV6_PKTINFO.
    func PktInfo6(info *Inet6Pktinfo) []byte {
    	b := make([]byte, CmsgSpace(SizeofInet6Pktinfo))
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_IPV6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 20:10:21 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  5. src/syscall/syscall_aix_ppc64.go

    // license that can be found in the LICENSE file.
    
    package syscall
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    	cmsg.Len = uint32(length)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 10 04:29:55 UTC 2018
    - 405 bytes
    - Viewed (0)
  6. src/syscall/syscall_netbsd_amd64.go

    	k.Ident = uint64(fd)
    	k.Filter = uint32(mode)
    	k.Flags = uint32(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    	cmsg.Len = uint32(length)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 13:10:54 UTC 2016
    - 709 bytes
    - Viewed (0)
  7. src/syscall/syscall_openbsd_amd64.go

    	k.Ident = uint64(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    	cmsg.Len = uint32(length)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 13:10:54 UTC 2016
    - 701 bytes
    - Viewed (0)
  8. src/syscall/syscall_openbsd_arm.go

    	k.Ident = uint32(fd)
    	k.Filter = int16(mode)
    	k.Flags = uint16(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint32(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    	cmsg.Len = uint32(length)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 13:10:54 UTC 2016
    - 715 bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go

    	k.Flags = uint32(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint64(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (msghdr *Msghdr) SetIovlen(length int) {
    	msghdr.Iovlen = int32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    	cmsg.Len = uint32(length)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 814 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go

    	k.Flags = uint32(flags)
    }
    
    func (iov *Iovec) SetLen(length int) {
    	iov.Len = uint32(length)
    }
    
    func (msghdr *Msghdr) SetControllen(length int) {
    	msghdr.Controllen = uint32(length)
    }
    
    func (msghdr *Msghdr) SetIovlen(length int) {
    	msghdr.Iovlen = int32(length)
    }
    
    func (cmsg *Cmsghdr) SetLen(length int) {
    	cmsg.Len = uint32(length)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 819 bytes
    - Viewed (0)
Back to top