Versions in this module Expand all Collapse all v1 v1.0.0 Aug 23, 2020 Changes in this version + const ADAPTER_KEY — windows/amd64 + const FILE_ANY_ACCESS — windows/amd64 + const IO_BUFFER_NUM — windows/amd64 + const MAX_PROCS — windows/amd64 + const METHOD_BUFFERED — windows/amd64 + const NETWORK_CONNECTIONS_KEY — windows/amd64 + const SYSDEVICEDIR — windows/amd64 + const TAPWIN32_MAX_REG_SIZE — windows/amd64 + const TAP_WIN_IOCTL_CONFIG_DHCP_MASQ — windows/amd64 + const TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT — windows/amd64 + const TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT — windows/amd64 + const TAP_WIN_IOCTL_CONFIG_TUN — windows/amd64 + const TAP_WIN_IOCTL_GET_INFO — windows/amd64 + const TAP_WIN_IOCTL_GET_LOG_LINE — windows/amd64 + const TAP_WIN_IOCTL_GET_MAC — windows/amd64 + const TAP_WIN_IOCTL_GET_MTU — windows/amd64 + const TAP_WIN_IOCTL_GET_VERSION — windows/amd64 + const TAP_WIN_IOCTL_SET_MEDIA_STATUS — windows/amd64 + const TAP_WIN_SUFFIX — windows/amd64 + const TUNTAP_COMPONENT_ID — windows/amd64 + const USERDEVICEDIR — windows/amd64 + const USERMODEDEVICEDIR — windows/amd64 + const WIN_TUN_DHCP_LEASE_TIME — windows/amd64 + func InterfaceByName(ifname string) (*net.Interface, error) + type TunApi interface + Close func() error + Read func(p []byte) (n int, err error) + Write func(p []byte) error + func OpenTun(ifname string, ip net.IP, ipnet net.IPNet) (TunApi, error) + type TunWin struct — windows/amd64 + DevicePath string + FD windows.Handle + ID string + MTU uint32 + NetworkName string + func (tun *TunWin) Close() error + func (tun *TunWin) Connect() error + func (tun *TunWin) GetMTU(refresh bool) uint32 + func (tun *TunWin) GetNetworkName(refresh bool) string + func (tun *TunWin) Read(p []byte) (int, error) + func (tun *TunWin) SetDHCPMasq(dhcpAddr, dhcpMask, serverIP net.IP, leaseTime uint32) error + func (tun *TunWin) Write(p []byte) error