Documentation
¶
Index ¶
- type ConnPool
- type ICMPConn
- type NetStack
- func (s *NetStack) ClosePool() <-chan interface{}
- func (s *NetStack) Destroy() error
- func (s *NetStack) GetStack() *stack.Stack
- func (s *NetStack) GetTunConn() <-chan TunConn
- func (ns *NetStack) HandlePacket(localConn TunConn, multiplex *yamux.Session, localRoutes []route.Route)
- func (ns *NetStack) ProcessICMP(pkt *stack.PacketBuffer)
- func (s *NetStack) SetConnPool(connPool *ConnPool)
- type TCPConn
- type TunConn
- type UDPConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnPool ¶
func NewConnPool ¶
type ICMPConn ¶
type ICMPConn struct {
Request stack.PacketBuffer
}
ICMPConn represents a ICMP Packet Buffer
type NetStack ¶
NetStack is the structure used to store the connection pool and the gvisor network stack
func NewNetstack ¶
func (*NetStack) GetTunConn ¶
func (*NetStack) HandlePacket ¶
func (*NetStack) ProcessICMP ¶
func (ns *NetStack) ProcessICMP(pkt *stack.PacketBuffer)
ProcessICMP send back a ICMP echo reply from after receiving a echo request. This code come mostly from pkg/tcpip/network/ipv4/icmp.go
func (*NetStack) SetConnPool ¶
SetConnPool is used to change the current connPool. It must be used after switching Ligolo agents
type TCPConn ¶
type TCPConn struct { EndpointID stack.TransportEndpointID Request *tcp.ForwarderRequest }
TCPConn represents a TCP Forwarder connection
type TunConn ¶
type TunConn struct { Protocol tcpip.TransportProtocolNumber Handler interface{} }
type UDPConn ¶
type UDPConn struct { EndpointID stack.TransportEndpointID Request *udp.ForwarderRequest }
UDPConn represents a UDP Forwarder connection
Click to show internal directories.
Click to hide internal directories.