Documentation ¶
Overview ¶
Package taptun provides an interface to the user level network TAP / TUN device.
https://www.kernel.org/doc/Documentation/networking/tuntap.txt
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrTruncated ¶
type ErrTruncated struct {
// contains filtered or unexported fields
}
ErrTruncated indicates the buffer supplied to ReadFrame was insufficient to hold the ingress frame.
func (ErrTruncated) Error ¶
func (e ErrTruncated) Error() string
type Tap ¶
type Tap struct { io.ReadWriteCloser // contains filtered or unexported fields }
Tap represents a TAP Virtual Ethernet network device.
func NewTap ¶
NewTap creates a *Tap device with the specified name and returns the device connected to the tap interface.
If an empty string ("") is specified for name, a tapN interface is created.
type Tun ¶
type Tun struct { io.ReadWriteCloser // contains filtered or unexported fields }
Tun represents a TUN Virtual Point-to-Point network device.
func NewTun ¶
NewTun creates a *Tun device with the specified name and returns the device connected to the tun interface.
If an empty string ("") is specified for name, a tunN interface is created.