Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpperProto ¶
type UpperProto interface { // SendEthUp propagates a packet to the upper layer. SendEthUp(pkt []byte) error // PollForEth calls the upper protocol layers for ethernet packets // to be transmitted. If a packet is available, it is copied // to the buffer, and the packet's number of bytes is returned. // The capacity of buf must match the MTU of the upper layer. PollForEth(buf []byte) (n int, err error) }
UpperProto defines the interface to the layer above the ethernet layer.
Click to show internal directories.
Click to hide internal directories.