Versions in this module Expand all Collapse all v1 v1.0.0 Aug 17, 2021 Changes in this version + const EventDown + const EventMTUUpdate + const EventUp + var WintunPool = wintun.MakePool("WireGuard") — windows/amd64 + var WintunStaticRequestedGUID *windows.GUID — windows/amd64 + type Device interface + Close func() error + Events func() chan Event + File func() *os.File + Flush func() error + MTU func() (int, error) + Name func() (string, error) + Read func([]byte, int) (int, error) + Write func([]byte, int) (int, error) + func CreateTUN(ifname string, mtu int, dirs ...string) (Device, error) + func CreateTUN(name string, mtu int) (Device, error) + func CreateTUNFromFile(file *os.File, mtu int) (Device, error) + func CreateTUNWithRequestedGUID(ifname string, dirs []string, requestedGUID *windows.GUID, mtu int) (Device, error) + func CreateUnmonitoredTUNFromFD(fd int) (Device, string, error) + type Event int + type NativeTun struct — darwin/amd64, linux/amd64, windows/amd64 + func (tun *NativeTun) Close() error + func (tun *NativeTun) Events() chan Event + func (tun *NativeTun) File() *os.File + func (tun *NativeTun) Flush() error + func (tun *NativeTun) ForceMTU(mtu int) + func (tun *NativeTun) LUID() uint64 + func (tun *NativeTun) MTU() (int, error) + func (tun *NativeTun) Name() (string, error) + func (tun *NativeTun) Read(buf []byte, offset int) (n int, err error) + func (tun *NativeTun) Read(buff []byte, offset int) (int, error) + func (tun *NativeTun) RunningVersion() (version uint32, err error) + func (tun *NativeTun) Write(buf []byte, offset int) (int, error) + func (tun *NativeTun) Write(buff []byte, offset int) (int, error)