Documentation
¶
Index ¶
- Constants
- func CreateLoop(name string, mtu int) (tun.Device, error)
- type Device
- func (d *Device) BatchSize() int
- func (d *Device) Close() error
- func (d *Device) Events() <-chan tun.Event
- func (d *Device) File() *os.File
- func (d *Device) MTU() (int, error)
- func (d *Device) Name() (string, error)
- func (d *Device) Read(bufs [][]byte, sizes []int, offset int) (n int, err error)
- func (d *Device) Write(bufs [][]byte, offset int) (int, error)
Constants ¶
View Source
const DefaultMTU = 1420
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.