Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { stack.LinkEndpoint // Close stops and closes the device. Close() error // Name returns the current name of the device. Name() string // Type returns the driver type of the device. Type() string }
Device is the interface that implemented by network layer devices (e.g. tun), and easy to use as stack.LinkEndpoint.
Directories ¶
Path | Synopsis |
---|---|
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
|
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints. |
Package tun provides TUN which implemented device.Device interface.
|
Package tun provides TUN which implemented device.Device interface. |
Click to show internal directories.
Click to hide internal directories.