Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlePacket ¶
func ProcessICMP ¶
func ProcessICMP(nstack *stack.Stack, pkt stack.PacketBufferPtr)
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.PacketBufferPtr
}
ICMPConn represents a ICMP Packet Buffer
type NetStack ¶
NetStack is the structure used to store the connection pool and the gvisor network stack
func NewStack ¶
func NewStack(settings StackSettings, connPool *ConnPool) (*NetStack, error)
NewStack registers a new GVisor Network Stack
func (*NetStack) Interface ¶ added in v0.5.1
func (n *NetStack) Interface() *tun.TunInterface
func (*NetStack) SetConnPool ¶
SetConnPool is used to change the current connPool. It must be used after switching Ligolo agents
type StackSettings ¶
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.