Documentation
¶
Index ¶
- Constants
- type Endpoint
- func (ep *Endpoint) ARPHardwareType() header.ARPHardwareType
- func (ep *Endpoint) AddHeader(*stack.PacketBuffer)
- func (ep *Endpoint) Attach(dispatcher stack.NetworkDispatcher)
- func (ep *Endpoint) Capabilities() stack.LinkEndpointCapabilities
- func (ep *Endpoint) Close()
- func (ep *Endpoint) IsAttached() bool
- func (ep *Endpoint) LinkAddress() tcpip.LinkAddress
- func (ep *Endpoint) MTU() uint32
- func (ep *Endpoint) MaxHeaderLength() uint16
- func (ep *Endpoint) ParseHeader(*stack.PacketBuffer) bool
- func (ep *Endpoint) SetLinkAddress(addr tcpip.LinkAddress)
- func (ep *Endpoint) SetMTU(mtu uint32)
- func (ep *Endpoint) SetOnCloseAction(func())
- func (ep *Endpoint) Wait()
- func (ep *Endpoint) WritePackets(list stack.PacketBufferList) (int, tcpip.Error)
- type Stack
Constants ¶
View Source
const MTU uint32 = 1400
View Source
const NICID tcpip.NICID = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func (*Endpoint) ARPHardwareType ¶
func (ep *Endpoint) ARPHardwareType() header.ARPHardwareType
func (*Endpoint) AddHeader ¶
func (ep *Endpoint) AddHeader(*stack.PacketBuffer)
func (*Endpoint) Attach ¶
func (ep *Endpoint) Attach(dispatcher stack.NetworkDispatcher)
func (*Endpoint) Capabilities ¶
func (ep *Endpoint) Capabilities() stack.LinkEndpointCapabilities
func (*Endpoint) IsAttached ¶
func (*Endpoint) LinkAddress ¶
func (ep *Endpoint) LinkAddress() tcpip.LinkAddress
func (*Endpoint) MaxHeaderLength ¶
func (*Endpoint) ParseHeader ¶
func (ep *Endpoint) ParseHeader(*stack.PacketBuffer) bool
func (*Endpoint) SetLinkAddress ¶ added in v0.7.1
func (ep *Endpoint) SetLinkAddress(addr tcpip.LinkAddress)
func (*Endpoint) SetOnCloseAction ¶ added in v0.7.1
func (ep *Endpoint) SetOnCloseAction(func())
func (*Endpoint) WritePackets ¶
WritePackets is called when get packets from gVisor stack. Then it sends them to VPN server
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func (*Stack) SetupResolve ¶ added in v0.6.0
func (s *Stack) SetupResolve(r zcdns.LocalServer)
Click to show internal directories.
Click to hide internal directories.