Versions in this module Expand all Collapse all v5 v5.46.0 Feb 20, 2026 Changes in this version + var File_common_packetswitch_gvisorstack_config_proto protoreflect.FileDescriptor + type Config struct + EnablePromiscuousMode bool + EnableSpoofing bool + Ips []*routercommon.CIDR + Mtu uint32 + PreferIpv6ForUdp bool + Routes []*routercommon.CIDR + SocketSettings *internet.SocketConfig + UserLevel uint32 + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (x *Config) GetEnablePromiscuousMode() bool + func (x *Config) GetEnableSpoofing() bool + func (x *Config) GetIps() []*routercommon.CIDR + func (x *Config) GetMtu() uint32 + func (x *Config) GetPreferIpv6ForUdp() bool + func (x *Config) GetRoutes() []*routercommon.CIDR + func (x *Config) GetSocketSettings() *internet.SocketConfig + func (x *Config) GetUserLevel() uint32 + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type NetworkLayerDeviceToGvisorLinkEndpointAdaptor struct + func NewNetworkLayerDeviceToGvisorLinkEndpointAdaptor(_ context.Context, mtu int, networkLayerSwitch packetswitch.NetworkLayerDevice) *NetworkLayerDeviceToGvisorLinkEndpointAdaptor + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) ARPHardwareType() header.ARPHardwareType + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) AddHeader(_ *stack.PacketBuffer) + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) Attach(dispatcher stack.NetworkDispatcher) + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) Capabilities() stack.LinkEndpointCapabilities + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) Close() + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) IsAttached() bool + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) LinkAddress() tcpip.LinkAddress + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) MTU() uint32 + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) MaxHeaderLength() uint16 + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) ParseHeader(_ *stack.PacketBuffer) bool + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) SetLinkAddress(_ tcpip.LinkAddress) + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) SetMTU(mtu uint32) + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) SetOnCloseAction(f func()) + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) Wait() + func (n *NetworkLayerDeviceToGvisorLinkEndpointAdaptor) WritePackets(list stack.PacketBufferList) (int, tcpip.Error) + type WrappedStack struct + func NewStack(ctx context.Context, config *Config) (*WrappedStack, error) + func (w *WrappedStack) Close() error + func (w *WrappedStack) CreateStackFromNetworkLayerDevice(packetSwitchDevice packetswitch.NetworkLayerDevice) error + func (w *WrappedStack) DialTCP(ctx context.Context, remoteAddress net.Destination) (net.Conn, error) + func (w *WrappedStack) ListenUDP(ctx context.Context, localAddress net.Destination) (net.PacketConn, error)