Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + func CmsgsSpace(t *kernel.Task, cmsgs socket.ControlMessages) int + func New(t *kernel.Task, socketOrEndpoint any) transport.ControlMessages + func PackControlMessages(t *kernel.Task, cmsgs socket.ControlMessages, buf []byte) []byte + func PackCredentials(t *kernel.Task, creds SCMCredentials, buf []byte, flags int) ([]byte, int) + func PackHopLimit(t *kernel.Task, hoplimit uint32, buf []byte) []byte + func PackIPPacketInfo(t *kernel.Task, packetInfo *linux.ControlMessageIPPacketInfo, buf []byte) []byte + func PackIPv6PacketInfo(t *kernel.Task, packetInfo *linux.ControlMessageIPv6PacketInfo, buf []byte) []byte + func PackInq(t *kernel.Task, inq int32, buf []byte) []byte + func PackOriginalDstAddress(t *kernel.Task, originalDstAddress linux.SockAddr, buf []byte) []byte + func PackRights(t *kernel.Task, rights SCMRights, cloexec bool, buf []byte, flags int) ([]byte, int) + func PackSockExtendedErr(t *kernel.Task, sockErr linux.SockErrCMsg, buf []byte) []byte + func PackTClass(t *kernel.Task, tClass uint32, buf []byte) []byte + func PackTOS(t *kernel.Task, tos uint8, buf []byte) []byte + func PackTTL(t *kernel.Task, ttl uint32, buf []byte) []byte + func PackTimestamp(t *kernel.Task, timestamp time.Time, buf []byte) []byte + func Parse(t *kernel.Task, socketOrEndpoint any, buf []byte, width uint) (socket.ControlMessages, error) + type RightsFiles []*vfs.FileDescription + func (fs *RightsFiles) Clone() transport.RightsControlMessage + func (fs *RightsFiles) Files(ctx context.Context, max int) (RightsFiles, bool) + func (fs *RightsFiles) Release(ctx context.Context) + type SCMCredentials interface + Credentials func(t *kernel.Task) (kernel.ThreadID, auth.UID, auth.GID) + func MakeCreds(t *kernel.Task) SCMCredentials + func NewSCMCredentials(t *kernel.Task, cred linux.ControlMessageCredentials) (SCMCredentials, error) + type SCMRights interface + Files func(ctx context.Context, max int) (rf RightsFiles, truncated bool) + func NewSCMRights(t *kernel.Task, fds []primitive.Int32) (SCMRights, error)