Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + var AllowAllProtocols = -1 + var AllowedRawSocketTypes = []AllowedSocketType + var AllowedSocketTypes = []AllowedSocketType + var SockOpts = []SockOpt + type AllowedSocketType struct + Family int + Protocol int + Type int + type SockOpt struct + AllowGet bool + AllowSet bool + Level uint64 + Name uint64 + Size uint64 + type Socket struct + func (s *Socket) Accept(t *kernel.Task, peerRequested bool, flags int, blocking bool) (int32, linux.SockAddr, uint32, *syserr.Error) + func (s *Socket) Bind(_ *kernel.Task, sockaddr []byte) *syserr.Error + func (s *Socket) Connect(t *kernel.Task, sockaddr []byte, blocking bool) *syserr.Error + func (s *Socket) Epollable() bool + func (s *Socket) EventRegister(e *waiter.Entry) error + func (s *Socket) EventUnregister(e *waiter.Entry) + func (s *Socket) GetPeerName(t *kernel.Task) (linux.SockAddr, uint32, *syserr.Error) + func (s *Socket) GetSockName(t *kernel.Task) (linux.SockAddr, uint32, *syserr.Error) + func (s *Socket) GetSockOpt(t *kernel.Task, level, name int, optValAddr hostarch.Addr, optLen int) (marshal.Marshallable, *syserr.Error) + func (s *Socket) Ioctl(ctx context.Context, uio usermem.IO, sysno uintptr, args arch.SyscallArguments) (uintptr, error) + func (s *Socket) Listen(_ *kernel.Task, backlog int) *syserr.Error + func (s *Socket) PRead(ctx context.Context, dst usermem.IOSequence, offset int64, ...) (int64, error) + func (s *Socket) PWrite(ctx context.Context, dst usermem.IOSequence, offset int64, ...) (int64, error) + func (s *Socket) Read(ctx context.Context, dst usermem.IOSequence, opts vfs.ReadOptions) (int64, error) + func (s *Socket) Readiness(mask waiter.EventMask) waiter.EventMask + func (s *Socket) RecvMsg(t *kernel.Task, dst usermem.IOSequence, flags int, haveDeadline bool, ...) (int, int, linux.SockAddr, uint32, socket.ControlMessages, *syserr.Error) + func (s *Socket) Release(ctx context.Context) + func (s *Socket) SendMsg(t *kernel.Task, src usermem.IOSequence, to []byte, flags int, ...) (int, *syserr.Error) + func (s *Socket) SetSockOpt(t *kernel.Task, level, name int, opt []byte) *syserr.Error + func (s *Socket) Shutdown(_ *kernel.Task, how int) *syserr.Error + func (s *Socket) State() uint32 + func (s *Socket) Type() (family int, skType linux.SockType, protocol int) + func (s *Socket) Write(ctx context.Context, src usermem.IOSequence, opts vfs.WriteOptions) (int64, error) + type Stack struct + func NewStack() *Stack + func (*Stack) AddInterfaceAddr(idx int32, addr inet.InterfaceAddr) error + func (*Stack) CleanupEndpoints() []stack.TransportEndpoint + func (*Stack) Destroy() + func (*Stack) Pause() + func (*Stack) PortRange() (uint16, uint16) + func (*Stack) RegisteredEndpoints() []stack.TransportEndpoint + func (*Stack) RemoveInterface(idx int32) error + func (*Stack) RemoveInterfaceAddr(idx int32, addr inet.InterfaceAddr) error + func (*Stack) Restore() + func (*Stack) RestoreCleanupEndpoints([]stack.TransportEndpoint) + func (*Stack) Resume() + func (*Stack) SetForwarding(tcpip.NetworkProtocolNumber, bool) error + func (*Stack) SetPortRange(uint16, uint16) error + func (*Stack) SetTCPReceiveBufferSize(inet.TCPBufferSize) error + func (*Stack) SetTCPRecovery(inet.TCPLossRecovery) error + func (*Stack) SetTCPSACKEnabled(bool) error + func (*Stack) SetTCPSendBufferSize(inet.TCPBufferSize) error + func (s *Stack) Configure(allowRawSockets bool) error + func (s *Stack) InterfaceAddrs() map[int32][]inet.InterfaceAddr + func (s *Stack) Interfaces() map[int32]inet.Interface + func (s *Stack) RouteTable() []inet.Route + func (s *Stack) SetInterface(ctx context.Context, msg *nlmsg.Message) *syserr.Error + func (s *Stack) Statistics(stat any, arg string) error + func (s *Stack) SupportsIPv6() bool + func (s *Stack) TCPReceiveBufferSize() (inet.TCPBufferSize, error) + func (s *Stack) TCPRecovery() (inet.TCPLossRecovery, error) + func (s *Stack) TCPSACKEnabled() (bool, error) + func (s *Stack) TCPSendBufferSize() (inet.TCPBufferSize, error)