Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface {
// PhyToVirt converts a physical frame to a virtual frame typically by performing decapsulation.
// Returns the length of the resulting virtual frame.
PhyToVirt(phyFrame, virtFrame []byte) int
// VirtToPhy converts a virtual frame to a physical frame typically by performing encapsulation.
// Returns the length of the resulting physical frame.
VirtToPhy(virtFrame, phyFrame []byte) (length int, loopback bool)
}
Decapsulate and encapsulate frames between physical and virtual interfaces.
Click to show internal directories.
Click to hide internal directories.