GNUnet  0.10.x
Macros
tap-windows.h File Reference

TAP32 virtual network driver defines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TAP_WIN_CONTROL_CODE(request, method)   CTL_CODE(FILE_DEVICE_UNKNOWN, request, method, FILE_ANY_ACCESS)
 
#define TAP_WIN_IOCTL_GET_MAC   TAP_WIN_CONTROL_CODE(1, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_GET_VERSION   TAP_WIN_CONTROL_CODE(2, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_GET_MTU   TAP_WIN_CONTROL_CODE(3, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_GET_INFO   TAP_WIN_CONTROL_CODE(4, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT   TAP_WIN_CONTROL_CODE(5, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_SET_MEDIA_STATUS   TAP_WIN_CONTROL_CODE(6, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_CONFIG_DHCP_MASQ   TAP_WIN_CONTROL_CODE(7, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_GET_LOG_LINE   TAP_WIN_CONTROL_CODE(8, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT   TAP_WIN_CONTROL_CODE(9, METHOD_BUFFERED)
 
#define TAP_WIN_IOCTL_CONFIG_TUN   TAP_WIN_CONTROL_CODE(10, METHOD_BUFFERED)
 
#define ADAPTER_KEY   "SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}"
 
#define NETWORK_CONNECTIONS_KEY   "SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}"
 
#define USERMODEDEVICEDIR   "\\\\.\\Global\\"
 
#define SYSDEVICEDIR   "\\Device\\"
 
#define USERDEVICEDIR   "\\DosDevices\\Global\\"
 
#define TAP_WIN_SUFFIX   ".tap"
 

Detailed Description

TAP32 virtual network driver defines.

Attention
This file is part of openvpn and for kept as a separate file to allow easier upgrading.

Definition in file tap-windows.h.

Macro Definition Documentation

◆ TAP_WIN_CONTROL_CODE

#define TAP_WIN_CONTROL_CODE (   request,
  method 
)    CTL_CODE(FILE_DEVICE_UNKNOWN, request, method, FILE_ANY_ACCESS)

Definition at line 40 of file tap-windows.h.

◆ TAP_WIN_IOCTL_GET_MAC

#define TAP_WIN_IOCTL_GET_MAC   TAP_WIN_CONTROL_CODE(1, METHOD_BUFFERED)

Definition at line 45 of file tap-windows.h.

◆ TAP_WIN_IOCTL_GET_VERSION

#define TAP_WIN_IOCTL_GET_VERSION   TAP_WIN_CONTROL_CODE(2, METHOD_BUFFERED)

Definition at line 46 of file tap-windows.h.

Referenced by check_tapw32_version().

◆ TAP_WIN_IOCTL_GET_MTU

#define TAP_WIN_IOCTL_GET_MTU   TAP_WIN_CONTROL_CODE(3, METHOD_BUFFERED)

Definition at line 47 of file tap-windows.h.

◆ TAP_WIN_IOCTL_GET_INFO

#define TAP_WIN_IOCTL_GET_INFO   TAP_WIN_CONTROL_CODE(4, METHOD_BUFFERED)

Definition at line 48 of file tap-windows.h.

◆ TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT

#define TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT   TAP_WIN_CONTROL_CODE(5, METHOD_BUFFERED)

Definition at line 49 of file tap-windows.h.

◆ TAP_WIN_IOCTL_SET_MEDIA_STATUS

#define TAP_WIN_IOCTL_SET_MEDIA_STATUS   TAP_WIN_CONTROL_CODE(6, METHOD_BUFFERED)

Definition at line 50 of file tap-windows.h.

Referenced by tun_up().

◆ TAP_WIN_IOCTL_CONFIG_DHCP_MASQ

#define TAP_WIN_IOCTL_CONFIG_DHCP_MASQ   TAP_WIN_CONTROL_CODE(7, METHOD_BUFFERED)

Definition at line 51 of file tap-windows.h.

◆ TAP_WIN_IOCTL_GET_LOG_LINE

#define TAP_WIN_IOCTL_GET_LOG_LINE   TAP_WIN_CONTROL_CODE(8, METHOD_BUFFERED)

Definition at line 52 of file tap-windows.h.

◆ TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT

#define TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT   TAP_WIN_CONTROL_CODE(9, METHOD_BUFFERED)

Definition at line 53 of file tap-windows.h.

◆ TAP_WIN_IOCTL_CONFIG_TUN

#define TAP_WIN_IOCTL_CONFIG_TUN   TAP_WIN_CONTROL_CODE(10, METHOD_BUFFERED)

Definition at line 58 of file tap-windows.h.

◆ ADAPTER_KEY

#define ADAPTER_KEY   "SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}"

Definition at line 66 of file tap-windows.h.

◆ NETWORK_CONNECTIONS_KEY

#define NETWORK_CONNECTIONS_KEY   "SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}"

Definition at line 68 of file tap-windows.h.

◆ USERMODEDEVICEDIR

#define USERMODEDEVICEDIR   "\\\\.\\Global\\"

Definition at line 76 of file tap-windows.h.

Referenced by init_tun().

◆ SYSDEVICEDIR

#define SYSDEVICEDIR   "\\Device\\"

Definition at line 77 of file tap-windows.h.

◆ USERDEVICEDIR

#define USERDEVICEDIR   "\\DosDevices\\Global\\"

Definition at line 78 of file tap-windows.h.

◆ TAP_WIN_SUFFIX

#define TAP_WIN_SUFFIX   ".tap"

Definition at line 79 of file tap-windows.h.

Referenced by init_tun().