Documentation ¶
Index ¶
Constants ¶
View Source
const ( TAPWIN32_MAX_REG_SIZE = 256 TUNTAP_COMPONENT_ID_0901 = "tap0901" TUNTAP_COMPONENT_ID_0801 = "tap0801" NETWORK_KEY = `SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}` ADAPTER_KEY = `SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}` )
Variables ¶
View Source
var ( TAP_IOCTL_GET_MTU = tap_control_code(3, 0) TAP_IOCTL_SET_MEDIA_STATUS = tap_control_code(6, 0) TAP_IOCTL_CONFIG_TUN = tap_control_code(10, 0) TAP_WIN_IOCTL_CONFIG_DHCP_MASQ = tap_control_code(7, 0) TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT = tap_control_code(9, 0) )
Functions ¶
func OpenTunDevice ¶
func OpenTunDevice(name, addr, gw, mask string, dns []string) (io.ReadWriteCloser, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.