Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlePacket ¶
func ProcessICMP ¶
func ProcessICMP(nstack *stack.Stack, 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
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 (*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.