Versions in this module Expand all Collapse all v1 v1.0.0 Aug 17, 2021 Changes in this version + const AdapterNameMax — windows/amd64 + const PacketSizeMax — windows/amd64 + const PoolNameMax — windows/amd64 + const RingCapacityMax — windows/amd64 + const RingCapacityMin — windows/amd64 + func RunningVersion() (version uint32, err error) — windows/amd64 + type Adapter struct — windows/amd64 + func (wintun *Adapter) Delete(forceCloseSessions bool) (rebootRequired bool, err error) + func (wintun *Adapter) LUID() (luid uint64) + func (wintun *Adapter) Name() (ifname string, err error) + func (wintun *Adapter) SetName(ifname string) (err error) + func (wintun *Adapter) StartSession(capacity uint32) (session Session, err error) + type Packet struct — windows/amd64 + Data *[PacketSizeMax]byte + Next *Packet + Size uint32 + type Pool [PoolNameMax]uint16 — windows/amd64 + func MakePool(poolName string) (pool *Pool, err error) + func (pool *Pool) CreateAdapter(ifname string, requestedGUID *windows.GUID) (wintun *Adapter, rebootRequired bool, err error) + func (pool *Pool) DeleteDriver() (rebootRequired bool, err error) + func (pool *Pool) DeleteMatchingAdapters(matches func(adapter *Adapter) bool, forceCloseSessions bool) (rebootRequired bool, errors []error) + func (pool *Pool) OpenAdapter(ifname string, dirs []string) (wintun *Adapter, err error) + func (pool *Pool) String() string + type Session struct — windows/amd64 + func (session Session) AllocateSendPacket(packetSize int) (packet []byte, err error) + func (session Session) End() + func (session Session) ReadWaitEvent() (handle windows.Handle) + func (session Session) ReceivePacket() (packet []byte, err error) + func (session Session) ReleaseReceivePacket(packet []byte) + func (session Session) SendPacket(packet []byte)