Documentation ¶
Rendered for windows/amd64
Index ¶
- Variables
- type Device
- type NativeTun
- func (tun *NativeTun) Close() error
- func (tun *NativeTun) File() *os.File
- func (tun *NativeTun) Flush() error
- func (tun *NativeTun) LUID() uint64
- func (tun *NativeTun) Name() (string, error)
- func (tun *NativeTun) Read(buff []byte, offset int) (int, error)
- func (tun *NativeTun) RunningVersion() (version uint32, err error)
- func (tun *NativeTun) Write(buff []byte, offset int) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var WintunStaticRequestedGUID *windows.GUID
View Source
var WintunTunnelType = "Nebula"
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { File() *os.File // returns the file descriptor of the device Read([]byte, int) (int, error) // read a packet from the device (without any additional headers) Write([]byte, int) (int, error) // writes a packet to the device (without any additional headers) Flush() error // flush all previous writes to the device Name() (string, error) // fetches and returns the current name Close() error // stops the device and closes the event channel }
Click to show internal directories.
Click to hide internal directories.