Documentation
¶
Index ¶
- type IPPool
- type LinkEndpoint
- func (e *LinkEndpoint) ARPHardwareType() header.ARPHardwareType
- func (e *LinkEndpoint) AddHeader(_ *stack.PacketBuffer)
- func (e *LinkEndpoint) Attach(dispatcher stack.NetworkDispatcher)
- func (e *LinkEndpoint) Capabilities() stack.LinkEndpointCapabilities
- func (e *LinkEndpoint) Close()
- func (e *LinkEndpoint) Connect(networkSwitch NetworkSwitch)
- func (e *LinkEndpoint) DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer)
- func (e *LinkEndpoint) IP() string
- func (e *LinkEndpoint) IsAttached() bool
- func (e *LinkEndpoint) LinkAddress() tcpip.LinkAddress
- func (e *LinkEndpoint) MTU() uint32
- func (e *LinkEndpoint) MaxHeaderLength() uint16
- func (e *LinkEndpoint) ParseHeader(*stack.PacketBuffer) bool
- func (e *LinkEndpoint) SetLinkAddress(addr tcpip.LinkAddress)
- func (e *LinkEndpoint) SetMTU(mtu uint32)
- func (e *LinkEndpoint) SetOnCloseAction(_ func())
- func (e *LinkEndpoint) Wait()
- func (e *LinkEndpoint) WritePackets(pkts stack.PacketBufferList) (int, tcpip.Error)
- func (e *LinkEndpoint) WriteRawPacket(_ *stack.PacketBuffer) tcpip.Error
- type NetworkSwitch
- type Switch
- type VirtualDevice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkEndpoint ¶
type LinkEndpoint struct {
// contains filtered or unexported fields
}
func NewLinkEndpoint ¶
func (*LinkEndpoint) ARPHardwareType ¶
func (e *LinkEndpoint) ARPHardwareType() header.ARPHardwareType
func (*LinkEndpoint) AddHeader ¶
func (e *LinkEndpoint) AddHeader(_ *stack.PacketBuffer)
func (*LinkEndpoint) Attach ¶
func (e *LinkEndpoint) Attach(dispatcher stack.NetworkDispatcher)
func (*LinkEndpoint) Capabilities ¶
func (e *LinkEndpoint) Capabilities() stack.LinkEndpointCapabilities
func (*LinkEndpoint) Close ¶ added in v0.8.0
func (e *LinkEndpoint) Close()
func (*LinkEndpoint) Connect ¶
func (e *LinkEndpoint) Connect(networkSwitch NetworkSwitch)
func (*LinkEndpoint) DeliverNetworkPacket ¶
func (e *LinkEndpoint) DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer)
func (*LinkEndpoint) IP ¶
func (e *LinkEndpoint) IP() string
func (*LinkEndpoint) IsAttached ¶
func (e *LinkEndpoint) IsAttached() bool
func (*LinkEndpoint) LinkAddress ¶
func (e *LinkEndpoint) LinkAddress() tcpip.LinkAddress
func (*LinkEndpoint) MTU ¶
func (e *LinkEndpoint) MTU() uint32
func (*LinkEndpoint) MaxHeaderLength ¶
func (e *LinkEndpoint) MaxHeaderLength() uint16
func (*LinkEndpoint) ParseHeader ¶ added in v0.7.0
func (e *LinkEndpoint) ParseHeader(*stack.PacketBuffer) bool
func (*LinkEndpoint) SetLinkAddress ¶ added in v0.8.0
func (e *LinkEndpoint) SetLinkAddress(addr tcpip.LinkAddress)
func (*LinkEndpoint) SetMTU ¶ added in v0.8.0
func (e *LinkEndpoint) SetMTU(mtu uint32)
func (*LinkEndpoint) SetOnCloseAction ¶ added in v0.8.0
func (e *LinkEndpoint) SetOnCloseAction(_ func())
func (*LinkEndpoint) Wait ¶
func (e *LinkEndpoint) Wait()
func (*LinkEndpoint) WritePackets ¶
func (e *LinkEndpoint) WritePackets(pkts stack.PacketBufferList) (int, tcpip.Error)
func (*LinkEndpoint) WriteRawPacket ¶
func (e *LinkEndpoint) WriteRawPacket(_ *stack.PacketBuffer) tcpip.Error
type NetworkSwitch ¶
type NetworkSwitch interface {
DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer)
}
type Switch ¶
func (*Switch) Connect ¶
func (e *Switch) Connect(ep VirtualDevice)
func (*Switch) DeliverNetworkPacket ¶
func (e *Switch) DeliverNetworkPacket(_ tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer)
type VirtualDevice ¶
type VirtualDevice interface { DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer) LinkAddress() tcpip.LinkAddress IP() string }
Click to show internal directories.
Click to hide internal directories.