package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
CmsgsSpace returns the number of bytes needed to fit the control messages represented in cmsgs.
MakeCreds creates default SCMCredentials.
New creates default control messages if needed.
NewSCMCredentials creates a new SCM_CREDENTIALS socket control message representation.
NewSCMRights creates a new SCM_RIGHTS socket control message representation using local sentry FDs.
PackControlMessages packs control messages into the given buffer.
PackCredentials packs the credentials in the control message (or default credentials if none) into a buffer.
PackHopLimit packs an IPV6_HOPLIMIT socket control message.
PackInq packs a TCP_INQ socket control message.
PackIPPacketInfo packs an IP_PKTINFO socket control message.
PackIPv6PacketInfo packs an IPV6_PKTINFO socket control message.
PackOriginalDstAddress packs an IP_RECVORIGINALDSTADDR socket control message.
PackRights packs as many FDs as will fit into the unused capacity of buf.
PackSockExtendedErr packs an IP*_RECVERR socket control message.
PackTClass packs an IPV6_TCLASS socket control message.
PackTimestamp packs a SO_TIMESTAMP socket control message.
PackTOS packs an IP_TOS socket control message.
PackTTL packs an IP_TTL socket control message.
Parse parses a raw socket control message into portable objects.
# Interfaces
SCMCredentials represents a SCM_CREDENTIALS socket control message.
SCMRights represents a SCM_RIGHTS socket control message.
# Type aliases
RightsFiles represents a SCM_RIGHTS socket control message.