Documentation
¶
Index ¶
- type ICMPConn
- func (c *ICMPConn) Close() error
- func (c *ICMPConn) LocalAddr() net.Addr
- func (c *ICMPConn) Read(b []byte) (int, error)
- func (c *ICMPConn) ReadFrom(b []byte) (int, net.Addr, error)
- func (c *ICMPConn) RemoteAddr() net.Addr
- func (c *ICMPConn) SetDeadline(when time.Time) error
- func (c *ICMPConn) SetHopLimit(limit int) error
- func (c *ICMPConn) SetReadDeadline(when time.Time) error
- func (c *ICMPConn) SetTTL(ttl int) error
- func (c *ICMPConn) SetWriteDeadline(when time.Time) error
- func (c *ICMPConn) Write(b []byte) (int, error)
- func (c *ICMPConn) WriteTo(b []byte, address net.Addr) (int, error)
- type Stack
- func (s *Stack) AddAddress(prefix netip.Prefix) error
- func (s *Stack) Addresses() []netip.Prefix
- func (s *Stack) Close() error
- func (s *Stack) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (s *Stack) DialICMPContext(ctx context.Context, network, address string) (*ICMPConn, error)
- func (s *Stack) Done() <-chan struct{}
- func (s *Stack) Listen(network, address string) (net.Listener, error)
- func (s *Stack) ListenICMP(network, address string) (*ICMPConn, error)
- func (s *Stack) ListenPacket(network, address string) (net.PacketConn, error)
- func (s *Stack) RemoveAddress(prefix netip.Prefix) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICMPConn ¶
type ICMPConn struct {
// contains filtered or unexported fields
}
func (*ICMPConn) RemoteAddr ¶
func (*ICMPConn) SetHopLimit ¶
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack is a gVisor network stack connected to a VPN packet device.
func (*Stack) AddAddress ¶
AddAddress adds an address that can receive packets in the userspace stack. It does not change host networking.
func (*Stack) DialContext ¶
func (*Stack) DialICMPContext ¶
func (*Stack) ListenPacket ¶
func (s *Stack) ListenPacket(network, address string) (net.PacketConn, error)
Click to show internal directories.
Click to hide internal directories.