Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + const DefaultTTL + var Metrics = tcpip.Stats + func ConvertShutdown(how int) (tcpip.ShutdownFlags, *syserr.Error) + func GetSockOpt(t *kernel.Task, s socket.Socket, ep commonEndpoint, family int, ...) (marshal.Marshallable, *syserr.Error) + func Ioctl(ctx context.Context, ep commonEndpoint, io usermem.IO, sysno uintptr, ...) (uintptr, error) + func LinuxToTUNFlags(flags uint16) (tun.Flags, error) + func New(t *kernel.Task, family int, skType linux.SockType, protocol int, ...) (*vfs.FileDescription, *syserr.Error) + func SetSockOpt(t *kernel.Task, s socket.Socket, ep commonEndpoint, level int, name int, ...) *syserr.Error + func TUNFlagsToLinux(flags tun.Flags) uint16 + type Stack struct + Stack *stack.Stack + func (s *Stack) AddInterfaceAddr(idx int32, addr inet.InterfaceAddr) error + func (s *Stack) CleanupEndpoints() []stack.TransportEndpoint + func (s *Stack) Destroy() + func (s *Stack) IPTables() (*stack.IPTables, error) + func (s *Stack) InterfaceAddrs() map[int32][]inet.InterfaceAddr + func (s *Stack) Interfaces() map[int32]inet.Interface + func (s *Stack) Pause() + func (s *Stack) PortRange() (uint16, uint16) + func (s *Stack) RegisteredEndpoints() []stack.TransportEndpoint + func (s *Stack) RemoveInterface(idx int32) error + func (s *Stack) RemoveInterfaceAddr(idx int32, addr inet.InterfaceAddr) error + func (s *Stack) Restore() + func (s *Stack) RestoreCleanupEndpoints(es []stack.TransportEndpoint) + func (s *Stack) Resume() + func (s *Stack) RouteTable() []inet.Route + func (s *Stack) SetForwarding(protocol tcpip.NetworkProtocolNumber, enable bool) error + func (s *Stack) SetInterface(ctx context.Context, msg *nlmsg.Message) *syserr.Error + func (s *Stack) SetPortRange(start uint16, end uint16) error + func (s *Stack) SetTCPReceiveBufferSize(size inet.TCPBufferSize) error + func (s *Stack) SetTCPRecovery(recovery inet.TCPLossRecovery) error + func (s *Stack) SetTCPSACKEnabled(enabled bool) error + func (s *Stack) SetTCPSendBufferSize(size inet.TCPBufferSize) 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)