Documentation
¶
Index ¶
- type IPPool
- type LinkEndpoint
- func (e *LinkEndpoint) ARPHardwareType() header.ARPHardwareType
- func (e *LinkEndpoint) AddHeader(pkt stack.PacketBufferPtr)
- func (e *LinkEndpoint) Attach(dispatcher stack.NetworkDispatcher)
- func (e *LinkEndpoint) Capabilities() stack.LinkEndpointCapabilities
- func (e *LinkEndpoint) Connect(networkSwitch NetworkSwitch)
- func (e *LinkEndpoint) DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt stack.PacketBufferPtr)
- 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) Wait()
- func (e *LinkEndpoint) WritePackets(pkts stack.PacketBufferList) (int, tcpip.Error)
- func (e *LinkEndpoint) WriteRawPacket(pkt stack.PacketBufferPtr) 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(pkt stack.PacketBufferPtr)
func (*LinkEndpoint) Attach ¶
func (e *LinkEndpoint) Attach(dispatcher stack.NetworkDispatcher)
func (*LinkEndpoint) Capabilities ¶
func (e *LinkEndpoint) Capabilities() stack.LinkEndpointCapabilities
func (*LinkEndpoint) Connect ¶
func (e *LinkEndpoint) Connect(networkSwitch NetworkSwitch)
func (*LinkEndpoint) DeliverNetworkPacket ¶
func (e *LinkEndpoint) DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt stack.PacketBufferPtr)
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) 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(pkt stack.PacketBufferPtr) tcpip.Error
type NetworkSwitch ¶
type NetworkSwitch interface {
DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt stack.PacketBufferPtr)
}
type Switch ¶
func (*Switch) Connect ¶
func (e *Switch) Connect(ep VirtualDevice)
func (*Switch) DeliverNetworkPacket ¶
func (e *Switch) DeliverNetworkPacket(_ tcpip.NetworkProtocolNumber, pkt stack.PacketBufferPtr)
type VirtualDevice ¶
type VirtualDevice interface { DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt stack.PacketBufferPtr) LinkAddress() tcpip.LinkAddress IP() string }
Click to show internal directories.
Click to hide internal directories.