Documentation
¶
Overview ¶
Package tun provides TUN which implemented device.Device interface.
Index ¶
- Constants
- func Open(name string, mtu uint32) (_ device.Device, err error)
- type TUN
- func (t *TUN) BatchSize() int
- func (t *TUN) Close()
- func (t *TUN) Close2() error
- func (t *TUN) MTU() uint32
- func (t *TUN) Name() string
- func (t *TUN) Offset() int
- func (t *TUN) Read(buffs [][]byte, sizes []int, offset int) (n int, err error)
- func (t *TUN) Type() string
- func (t *TUN) UseEndpoint() error
- func (t *TUN) UseIOBased() error
- func (t *TUN) Write(buffs [][]byte, offset int) (int, error)
Constants ¶
View Source
const Driver = "tun"
Variables ¶
This section is empty.
Functions ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.