Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InternalIndex ¶
type InternalIndex int
An InternalIndex allows simpler referencing to physical and virtual network interfaces. They are similar to Linux's ifindex
const ( LoopbackInternalIndex InternalIndex = 1 ExternalInternalIndex InternalIndex = 2 )
InternalIndexes are hardcoded
func Read ¶
func Read() ([]byte, InternalIndex, error)
Read allows blocking reads from any given interface
Click to show internal directories.
Click to hide internal directories.