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