Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
| ... | ... |
@@ -959,15 +959,15 @@ if test "$SELINUX" = "yes"; then |
| 959 | 959 |
) |
| 960 | 960 |
fi |
| 961 | 961 |
|
| 962 |
-TAP_COMPONENT_ID="PRODUCT_TAP_ID" |
|
| 963 |
-TAP_WIN32_MIN_MAJOR="PRODUCT_TAP_WIN32_MIN_MAJOR" |
|
| 964 |
-TAP_WIN32_MIN_MINOR="PRODUCT_TAP_WIN32_MIN_MINOR" |
|
| 965 |
-AC_DEFINE_UNQUOTED([TAP_ID], ["${TAP_ID}"], [The TAP-Win32 id])
|
|
| 966 |
-AC_DEFINE_UNQUOTED([TAP_WIN32_MIN_MAJOR], [${TAP_WIN32_MIN_MAJOR}], [The TAP-Win32 version number is defined in tap-win32/SOURCES])
|
|
| 967 |
-AC_DEFINE_UNQUOTED([TAP_WIN32_MIN_MINOR], [${TAP_WIN32_MIN_MINOR}], [The TAP-Win32 version number is defined in tap-win32/SOURCES])
|
|
| 968 |
-AC_SUBST([TAP_COMPONENT_ID]) |
|
| 969 |
-AC_SUBST([TAP_WIN32_MIN_MAJOR]) |
|
| 970 |
-AC_SUBST([TAP_WIN32_MIN_MINOR]) |
|
| 962 |
+TAP_WIN_COMPONENT_ID="PRODUCT_TAP_WIN_COMPONENT_ID" |
|
| 963 |
+TAP_WIN_MIN_MAJOR="PRODUCT_TAP_WIN_MIN_MAJOR" |
|
| 964 |
+TAP_WIN_MIN_MINOR="PRODUCT_TAP_WIN_MIN_MINOR" |
|
| 965 |
+AC_DEFINE_UNQUOTED([TAP_WIN_COMPONENT_ID], ["${TAP_WIN_COMPONENT_ID}"], [The tap-windows id])
|
|
| 966 |
+AC_DEFINE_UNQUOTED([TAP_WIN_MIN_MAJOR], [${TAP_WIN_MIN_MAJOR}], [The tap-windows version number is required for OpenVPN])
|
|
| 967 |
+AC_DEFINE_UNQUOTED([TAP_WIN_MIN_MINOR], [${TAP_WIN_MIN_MINOR}], [The tap-windows version number is required for OpenVPN])
|
|
| 968 |
+AC_SUBST([TAP_WIN_COMPONENT_ID]) |
|
| 969 |
+AC_SUBST([TAP_WIN_MIN_MAJOR]) |
|
| 970 |
+AC_SUBST([TAP_WIN_MIN_MINOR]) |
|
| 971 | 971 |
|
| 972 | 972 |
win32datadir="\${datadir}/${PACKAGE}-win32"
|
| 973 | 973 |
AC_SUBST(win32datadir) |
| ... | ... |
@@ -113,7 +113,7 @@ |
| 113 | 113 |
|
| 114 | 114 |
#define D_LINK_RW LOGLEV(6, 69, M_DEBUG) /* show TCP/UDP reads/writes (terse) */ |
| 115 | 115 |
#define D_TUN_RW LOGLEV(6, 69, M_DEBUG) /* show TUN/TAP reads/writes */ |
| 116 |
-#define D_TAP_WIN32_DEBUG LOGLEV(6, 69, M_DEBUG) /* show TAP-Win32 driver debug info */ |
|
| 116 |
+#define D_TAP_WIN_DEBUG LOGLEV(6, 69, M_DEBUG) /* show TAP-Windows driver debug info */ |
|
| 117 | 117 |
#define D_CLIENT_NAT LOGLEV(6, 69, M_DEBUG) /* show client NAT debug info */ |
| 118 | 118 |
|
| 119 | 119 |
#define D_SHOW_KEYS LOGLEV(7, 70, M_DEBUG) /* show data channel encryption keys */ |
| ... | ... |
@@ -614,8 +614,8 @@ x_check_status (int status, |
| 614 | 614 |
} |
| 615 | 615 |
} |
| 616 | 616 |
#elif defined(WIN32) |
| 617 |
- /* get possible driver error from TAP-Win32 driver */ |
|
| 618 |
- extended_msg = tap_win32_getinfo (tt, &gc); |
|
| 617 |
+ /* get possible driver error from TAP-Windows driver */ |
|
| 618 |
+ extended_msg = tap_win_getinfo (tt, &gc); |
|
| 619 | 619 |
#endif |
| 620 | 620 |
if (!ignore_sys_error (my_errno)) |
| 621 | 621 |
{
|
| ... | ... |
@@ -741,7 +741,7 @@ strerror_win32 (DWORD errnum, struct gc_arena *gc) |
| 741 | 741 |
#if 1 |
| 742 | 742 |
switch (errnum) {
|
| 743 | 743 |
/* |
| 744 |
- * When the TAP-Win32 driver returns STATUS_UNSUCCESSFUL, this code |
|
| 744 |
+ * When the TAP-Windows driver returns STATUS_UNSUCCESSFUL, this code |
|
| 745 | 745 |
* gets returned to user space. |
| 746 | 746 |
*/ |
| 747 | 747 |
case ERROR_GEN_FAILURE: |
| ... | ... |
@@ -1292,7 +1292,7 @@ pre_select (struct context *c) |
| 1292 | 1292 |
c->c2.timeval.tv_usec = 0; |
| 1293 | 1293 |
|
| 1294 | 1294 |
#if defined(WIN32) |
| 1295 |
- if (check_debug_level (D_TAP_WIN32_DEBUG)) |
|
| 1295 |
+ if (check_debug_level (D_TAP_WIN_DEBUG)) |
|
| 1296 | 1296 |
{
|
| 1297 | 1297 |
c->c2.timeval.tv_sec = 1; |
| 1298 | 1298 |
if (tuntap_defined (c->c1.tuntap)) |
| ... | ... |
@@ -657,7 +657,7 @@ static const char usage_message[] = |
| 657 | 657 |
"Windows Specific:\n" |
| 658 | 658 |
"--win-sys path : Pathname of Windows system directory. Default is the pathname\n" |
| 659 | 659 |
" from SystemRoot environment variable.\n" |
| 660 |
- "--ip-win32 method : When using --ifconfig on Windows, set TAP-Win32 adapter\n" |
|
| 660 |
+ "--ip-win32 method : When using --ifconfig on Windows, set TAP-Windows adapter\n" |
|
| 661 | 661 |
" IP address using method = manual, netsh, ipapi,\n" |
| 662 | 662 |
" dynamic, or adaptive (default = adaptive).\n" |
| 663 | 663 |
" Dynamic method allows two optional parameters:\n" |
| ... | ... |
@@ -673,7 +673,7 @@ static const char usage_message[] = |
| 673 | 673 |
" adaptive (default) -- Try ipapi then fall back to exe.\n" |
| 674 | 674 |
" ipapi -- Use IP helper API.\n" |
| 675 | 675 |
" exe -- Call the route.exe shell command.\n" |
| 676 |
- "--dhcp-option type [parm] : Set extended TAP-Win32 properties, must\n" |
|
| 676 |
+ "--dhcp-option type [parm] : Set extended TAP-Windows properties, must\n" |
|
| 677 | 677 |
" be used with --ip-win32 dynamic. For options\n" |
| 678 | 678 |
" which allow multiple addresses,\n" |
| 679 | 679 |
" --dhcp-option must be repeated.\n" |
| ... | ... |
@@ -704,7 +704,7 @@ static const char usage_message[] = |
| 704 | 704 |
" after TAP adapter is up and routes have been added.\n" |
| 705 | 705 |
"Windows Standalone Options:\n" |
| 706 | 706 |
"\n" |
| 707 |
- "--show-adapters : Show all TAP-Win32 adapters.\n" |
|
| 707 |
+ "--show-adapters : Show all TAP-Windows adapters.\n" |
|
| 708 | 708 |
"--show-net : Show " PACKAGE_NAME "'s view of routing table and net adapter list.\n" |
| 709 | 709 |
"--show-valid-subnets : Show valid subnets for --dev tun emulation.\n" |
| 710 | 710 |
"--allow-nonadmin [TAP-adapter] : Allow " PACKAGE_NAME " running without admin privileges\n" |
| ... | ... |
@@ -6046,7 +6046,7 @@ add_option (struct options *options, |
| 6046 | 6046 |
else if (streq (p[0], "show-adapters")) |
| 6047 | 6047 |
{
|
| 6048 | 6048 |
VERIFY_PERMISSION (OPT_P_GENERAL); |
| 6049 |
- show_tap_win32_adapters (M_INFO|M_NOPREFIX, M_WARN|M_NOPREFIX); |
|
| 6049 |
+ show_tap_win_adapters (M_INFO|M_NOPREFIX, M_WARN|M_NOPREFIX); |
|
| 6050 | 6050 |
openvpn_exit (OPENVPN_EXIT_STATUS_GOOD); /* exit point */ |
| 6051 | 6051 |
} |
| 6052 | 6052 |
else if (streq (p[0], "show-net")) |
| ... | ... |
@@ -69,7 +69,7 @@ extern "C" {
|
| 69 | 69 |
// displayed name of the service |
| 70 | 70 |
#define SZSERVICEDISPLAYNAME PACKAGE_NAME " Service" |
| 71 | 71 |
// list of service dependencies - "dep1\0dep2\0\0" |
| 72 |
-#define SZDEPENDENCIES TAP_ID "\0Dhcp\0\0" |
|
| 72 |
+#define SZDEPENDENCIES TAP_WIN_COMPONENT_ID "\0Dhcp\0\0" |
|
| 73 | 73 |
////////////////////////////////////////////////////////////////////////////// |
| 74 | 74 |
|
| 75 | 75 |
|
| ... | ... |
@@ -268,7 +268,7 @@ print_status (const struct context *c, struct status_output *so) |
| 268 | 268 |
#ifdef WIN32 |
| 269 | 269 |
if (tuntap_defined (c->c1.tuntap)) |
| 270 | 270 |
status_printf (so, "TAP-WIN32 driver status,\"%s\"", |
| 271 |
- tap_win32_getinfo (c->c1.tuntap, &gc)); |
|
| 271 |
+ tap_win_getinfo (c->c1.tuntap, &gc)); |
|
| 272 | 272 |
#endif |
| 273 | 273 |
|
| 274 | 274 |
status_printf (so, "END"); |
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 | 1 |
/* |
| 2 |
- * TAP-Win32/TAP-Win64 -- A kernel driver to provide virtual tap |
|
| 3 |
- * device functionality on Windows. |
|
| 2 |
+ * TAP-Windows -- A kernel driver to provide virtual tap |
|
| 3 |
+ * device functionality on Windows. |
|
| 4 | 4 |
* |
| 5 | 5 |
* This code was inspired by the CIPE-Win32 driver by Damion K. Wilson. |
| 6 | 6 |
* |
| ... | ... |
@@ -21,32 +21,32 @@ |
| 21 | 21 |
* distribution); if not, write to the Free Software Foundation, Inc., |
| 22 | 22 |
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 23 | 23 |
*/ |
| 24 |
-#ifndef __TAP_H |
|
| 25 |
-#define __TAP_H |
|
| 24 |
+#ifndef __TAP_WIN_H |
|
| 25 |
+#define __TAP_WIN_H |
|
| 26 | 26 |
|
| 27 | 27 |
//============= |
| 28 | 28 |
// TAP IOCTLs |
| 29 | 29 |
//============= |
| 30 | 30 |
|
| 31 |
-#define TAP_CONTROL_CODE(request,method) \ |
|
| 31 |
+#define TAP_WIN_CONTROL_CODE(request,method) \ |
|
| 32 | 32 |
CTL_CODE (FILE_DEVICE_UNKNOWN, request, method, FILE_ANY_ACCESS) |
| 33 | 33 |
|
| 34 | 34 |
// Present in 8.1 |
| 35 | 35 |
|
| 36 |
-#define TAP_IOCTL_GET_MAC TAP_CONTROL_CODE (1, METHOD_BUFFERED) |
|
| 37 |
-#define TAP_IOCTL_GET_VERSION TAP_CONTROL_CODE (2, METHOD_BUFFERED) |
|
| 38 |
-#define TAP_IOCTL_GET_MTU TAP_CONTROL_CODE (3, METHOD_BUFFERED) |
|
| 39 |
-#define TAP_IOCTL_GET_INFO TAP_CONTROL_CODE (4, METHOD_BUFFERED) |
|
| 40 |
-#define TAP_IOCTL_CONFIG_POINT_TO_POINT TAP_CONTROL_CODE (5, METHOD_BUFFERED) |
|
| 41 |
-#define TAP_IOCTL_SET_MEDIA_STATUS TAP_CONTROL_CODE (6, METHOD_BUFFERED) |
|
| 42 |
-#define TAP_IOCTL_CONFIG_DHCP_MASQ TAP_CONTROL_CODE (7, METHOD_BUFFERED) |
|
| 43 |
-#define TAP_IOCTL_GET_LOG_LINE TAP_CONTROL_CODE (8, METHOD_BUFFERED) |
|
| 44 |
-#define TAP_IOCTL_CONFIG_DHCP_SET_OPT TAP_CONTROL_CODE (9, METHOD_BUFFERED) |
|
| 36 |
+#define TAP_WIN_IOCTL_GET_MAC TAP_WIN_CONTROL_CODE (1, METHOD_BUFFERED) |
|
| 37 |
+#define TAP_WIN_IOCTL_GET_VERSION TAP_WIN_CONTROL_CODE (2, METHOD_BUFFERED) |
|
| 38 |
+#define TAP_WIN_IOCTL_GET_MTU TAP_WIN_CONTROL_CODE (3, METHOD_BUFFERED) |
|
| 39 |
+#define TAP_WIN_IOCTL_GET_INFO TAP_WIN_CONTROL_CODE (4, METHOD_BUFFERED) |
|
| 40 |
+#define TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT TAP_WIN_CONTROL_CODE (5, METHOD_BUFFERED) |
|
| 41 |
+#define TAP_WIN_IOCTL_SET_MEDIA_STATUS TAP_WIN_CONTROL_CODE (6, METHOD_BUFFERED) |
|
| 42 |
+#define TAP_WIN_IOCTL_CONFIG_DHCP_MASQ TAP_WIN_CONTROL_CODE (7, METHOD_BUFFERED) |
|
| 43 |
+#define TAP_WIN_IOCTL_GET_LOG_LINE TAP_WIN_CONTROL_CODE (8, METHOD_BUFFERED) |
|
| 44 |
+#define TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT TAP_WIN_CONTROL_CODE (9, METHOD_BUFFERED) |
|
| 45 | 45 |
|
| 46 | 46 |
// Added in 8.2 |
| 47 | 47 |
|
| 48 |
-/* obsoletes TAP_IOCTL_CONFIG_POINT_TO_POINT */ |
|
| 49 |
-#define TAP_IOCTL_CONFIG_TUN TAP_CONTROL_CODE (10, METHOD_BUFFERED) |
|
| 48 |
+/* obsoletes TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT */ |
|
| 49 |
+#define TAP_WIN_IOCTL_CONFIG_TUN TAP_WIN_CONTROL_CODE (10, METHOD_BUFFERED) |
|
| 50 | 50 |
|
| 51 | 51 |
//================= |
| 52 | 52 |
// Registry keys |
| ... | ... |
@@ -63,6 +63,6 @@ |
| 63 | 63 |
#define USERMODEDEVICEDIR "\\\\.\\Global\\" |
| 64 | 64 |
#define SYSDEVICEDIR "\\Device\\" |
| 65 | 65 |
#define USERDEVICEDIR "\\DosDevices\\Global\\" |
| 66 |
-#define TAPSUFFIX ".tap" |
|
| 66 |
+#define TAP_WIN_SUFFIX ".tap" |
|
| 67 | 67 |
|
| 68 | 68 |
#endif |
| ... | ... |
@@ -1176,7 +1176,7 @@ do_ifconfig (struct tuntap *tt, |
| 1176 | 1176 |
break; |
| 1177 | 1177 |
case IPW32_SET_NETSH: |
| 1178 | 1178 |
if (!strcmp (actual, "NULL")) |
| 1179 |
- msg (M_FATAL, "Error: When using --ip-win32 netsh, if you have more than one TAP-Win32 adapter, you must also specify --dev-node"); |
|
| 1179 |
+ msg (M_FATAL, "Error: When using --ip-win32 netsh, if you have more than one TAP-Windows adapter, you must also specify --dev-node"); |
|
| 1180 | 1180 |
|
| 1181 | 1181 |
netsh_ifconfig (&tt->options, |
| 1182 | 1182 |
actual, |
| ... | ... |
@@ -1195,7 +1195,7 @@ do_ifconfig (struct tuntap *tt, |
| 1195 | 1195 |
char * saved_actual; |
| 1196 | 1196 |
|
| 1197 | 1197 |
if (!strcmp (actual, "NULL")) |
| 1198 |
- msg (M_FATAL, "Error: When using --tun-ipv6, if you have more than one TAP-Win32 adapter, you must also specify --dev-node"); |
|
| 1198 |
+ msg (M_FATAL, "Error: When using --tun-ipv6, if you have more than one TAP-Windows adapter, you must also specify --dev-node"); |
|
| 1199 | 1199 |
|
| 1200 | 1200 |
/* example: netsh interface ipv6 set address MyTap 2001:608:8003::d store=active */ |
| 1201 | 1201 |
argv_printf (&argv, |
| ... | ... |
@@ -2786,7 +2786,7 @@ get_tap_reg (struct gc_arena *gc) |
| 2786 | 2786 |
|
| 2787 | 2787 |
if (status == ERROR_SUCCESS && data_type == REG_SZ) |
| 2788 | 2788 |
{
|
| 2789 |
- if (!strcmp (component_id, TAP_COMPONENT_ID)) |
|
| 2789 |
+ if (!strcmp (component_id, TAP_WIN_COMPONENT_ID)) |
|
| 2790 | 2790 |
{
|
| 2791 | 2791 |
struct tap_reg *reg; |
| 2792 | 2792 |
ALLOC_OBJ_CLEAR_GC (reg, struct tap_reg, gc); |
| ... | ... |
@@ -2953,7 +2953,7 @@ void show_valid_win32_tun_subnets (void) |
| 2953 | 2953 |
int col = 0; |
| 2954 | 2954 |
|
| 2955 | 2955 |
printf ("On Windows, point-to-point IP support (i.e. --dev tun)\n");
|
| 2956 |
- printf ("is emulated by the TAP-Win32 driver. The major limitation\n");
|
|
| 2956 |
+ printf ("is emulated by the TAP-Windows driver. The major limitation\n");
|
|
| 2957 | 2957 |
printf ("imposed by this approach is that the --ifconfig local and\n");
|
| 2958 | 2958 |
printf ("remote endpoints must be part of the same 255.255.255.252\n");
|
| 2959 | 2959 |
printf ("subnet. The following list shows examples of endpoint\n");
|
| ... | ... |
@@ -2978,7 +2978,7 @@ void show_valid_win32_tun_subnets (void) |
| 2978 | 2978 |
} |
| 2979 | 2979 |
|
| 2980 | 2980 |
void |
| 2981 |
-show_tap_win32_adapters (int msglev, int warnlev) |
|
| 2981 |
+show_tap_win_adapters (int msglev, int warnlev) |
|
| 2982 | 2982 |
{
|
| 2983 | 2983 |
struct gc_arena gc = gc_new (); |
| 2984 | 2984 |
|
| ... | ... |
@@ -2997,7 +2997,7 @@ show_tap_win32_adapters (int msglev, int warnlev) |
| 2997 | 2997 |
|
| 2998 | 2998 |
msg (msglev, "Available TAP-WIN32 adapters [name, GUID]:"); |
| 2999 | 2999 |
|
| 3000 |
- /* loop through each TAP-Win32 adapter registry entry */ |
|
| 3000 |
+ /* loop through each TAP-Windows adapter registry entry */ |
|
| 3001 | 3001 |
for (tr = tap_reg; tr != NULL; tr = tr->next) |
| 3002 | 3002 |
{
|
| 3003 | 3003 |
links = 0; |
| ... | ... |
@@ -3025,7 +3025,7 @@ show_tap_win32_adapters (int msglev, int warnlev) |
| 3025 | 3025 |
} |
| 3026 | 3026 |
} |
| 3027 | 3027 |
|
| 3028 |
- /* check for TAP-Win32 adapter duplicated GUIDs */ |
|
| 3028 |
+ /* check for TAP-Windows adapter duplicated GUIDs */ |
|
| 3029 | 3029 |
for (tr = tap_reg; tr != NULL; tr = tr->next) |
| 3030 | 3030 |
{
|
| 3031 | 3031 |
for (tr1 = tap_reg; tr1 != NULL; tr1 = tr1->next) |
| ... | ... |
@@ -3037,22 +3037,22 @@ show_tap_win32_adapters (int msglev, int warnlev) |
| 3037 | 3037 |
|
| 3038 | 3038 |
/* warn on registry inconsistencies */ |
| 3039 | 3039 |
if (warn_tap_dup) |
| 3040 |
- msg (warnlev, "WARNING: Some TAP-Win32 adapters have duplicate GUIDs"); |
|
| 3040 |
+ msg (warnlev, "WARNING: Some TAP-Windows adapters have duplicate GUIDs"); |
|
| 3041 | 3041 |
|
| 3042 | 3042 |
if (warn_panel_dup) |
| 3043 |
- msg (warnlev, "WARNING: Some TAP-Win32 adapters have duplicate links from the Network Connections control panel"); |
|
| 3043 |
+ msg (warnlev, "WARNING: Some TAP-Windows adapters have duplicate links from the Network Connections control panel"); |
|
| 3044 | 3044 |
|
| 3045 | 3045 |
if (warn_panel_null) |
| 3046 |
- msg (warnlev, "WARNING: Some TAP-Win32 adapters have no link from the Network Connections control panel"); |
|
| 3046 |
+ msg (warnlev, "WARNING: Some TAP-Windows adapters have no link from the Network Connections control panel"); |
|
| 3047 | 3047 |
|
| 3048 | 3048 |
gc_free (&gc); |
| 3049 | 3049 |
} |
| 3050 | 3050 |
|
| 3051 | 3051 |
/* |
| 3052 |
- * Confirm that GUID is a TAP-Win32 adapter. |
|
| 3052 |
+ * Confirm that GUID is a TAP-Windows adapter. |
|
| 3053 | 3053 |
*/ |
| 3054 | 3054 |
static bool |
| 3055 |
-is_tap_win32 (const char *guid, const struct tap_reg *tap_reg) |
|
| 3055 |
+is_tap_win (const char *guid, const struct tap_reg *tap_reg) |
|
| 3056 | 3056 |
{
|
| 3057 | 3057 |
const struct tap_reg *tr; |
| 3058 | 3058 |
|
| ... | ... |
@@ -3086,7 +3086,7 @@ name_to_guid (const char *name, const struct tap_reg *tap_reg, const struct pane |
| 3086 | 3086 |
|
| 3087 | 3087 |
for (pr = panel_reg; pr != NULL; pr = pr->next) |
| 3088 | 3088 |
{
|
| 3089 |
- if (name && !strcmp (pr->name, name) && is_tap_win32 (pr->guid, tap_reg)) |
|
| 3089 |
+ if (name && !strcmp (pr->name, name) && is_tap_win (pr->guid, tap_reg)) |
|
| 3090 | 3090 |
return pr->guid; |
| 3091 | 3091 |
} |
| 3092 | 3092 |
|
| ... | ... |
@@ -3094,10 +3094,10 @@ name_to_guid (const char *name, const struct tap_reg *tap_reg, const struct pane |
| 3094 | 3094 |
} |
| 3095 | 3095 |
|
| 3096 | 3096 |
static void |
| 3097 |
-at_least_one_tap_win32 (const struct tap_reg *tap_reg) |
|
| 3097 |
+at_least_one_tap_win (const struct tap_reg *tap_reg) |
|
| 3098 | 3098 |
{
|
| 3099 | 3099 |
if (!tap_reg) |
| 3100 |
- msg (M_FATAL, "There are no TAP-Win32 adapters on this system. You should be able to create a TAP-Win32 adapter by going to Start -> All Programs -> " PACKAGE_NAME " -> Add a new TAP-Win32 virtual ethernet adapter."); |
|
| 3100 |
+ msg (M_FATAL, "There are no TAP-Windows adapters on this system. You should be able to create a TAP-Windows adapter by going to Start -> All Programs -> " PACKAGE_NAME " -> Add a new TAP-Windows virtual ethernet adapter."); |
|
| 3101 | 3101 |
} |
| 3102 | 3102 |
|
| 3103 | 3103 |
/* |
| ... | ... |
@@ -3181,7 +3181,7 @@ get_device_guid (const char *name, |
| 3181 | 3181 |
} |
| 3182 | 3182 |
|
| 3183 | 3183 |
/* Check if GUID was explicitly specified as --dev-node parameter */ |
| 3184 |
- if (is_tap_win32 (name, tap_reg)) |
|
| 3184 |
+ if (is_tap_win (name, tap_reg)) |
|
| 3185 | 3185 |
{
|
| 3186 | 3186 |
const char *act = guid_to_name (name, panel_reg); |
| 3187 | 3187 |
buf_printf (&ret, "%s", name); |
| ... | ... |
@@ -3767,7 +3767,7 @@ show_adapters (int msglev) |
| 3767 | 3767 |
} |
| 3768 | 3768 |
|
| 3769 | 3769 |
/* |
| 3770 |
- * Set a particular TAP-Win32 adapter (or all of them if |
|
| 3770 |
+ * Set a particular TAP-Windows adapter (or all of them if |
|
| 3771 | 3771 |
* adapter_name == NULL) to allow it to be opened from |
| 3772 | 3772 |
* a non-admin account. This setting will only persist |
| 3773 | 3773 |
* for the lifetime of the device object. |
| ... | ... |
@@ -3789,7 +3789,7 @@ tap_allow_nonadmin_access_handle (const char *device_path, HANDLE hand) |
| 3789 | 3789 |
} |
| 3790 | 3790 |
else |
| 3791 | 3791 |
{
|
| 3792 |
- msg (M_INFO|M_NOPREFIX, "TAP-Win32 device: %s [Non-admin access allowed]", device_path); |
|
| 3792 |
+ msg (M_INFO|M_NOPREFIX, "TAP-Windows device: %s [Non-admin access allowed]", device_path); |
|
| 3793 | 3793 |
} |
| 3794 | 3794 |
} |
| 3795 | 3795 |
|
| ... | ... |
@@ -3804,7 +3804,7 @@ tap_allow_nonadmin_access (const char *dev_node) |
| 3804 | 3804 |
char actual_buffer[256]; |
| 3805 | 3805 |
char device_path[256]; |
| 3806 | 3806 |
|
| 3807 |
- at_least_one_tap_win32 (tap_reg); |
|
| 3807 |
+ at_least_one_tap_win (tap_reg); |
|
| 3808 | 3808 |
|
| 3809 | 3809 |
if (dev_node) |
| 3810 | 3810 |
{
|
| ... | ... |
@@ -3812,13 +3812,13 @@ tap_allow_nonadmin_access (const char *dev_node) |
| 3812 | 3812 |
device_guid = get_device_guid (dev_node, actual_buffer, sizeof (actual_buffer), tap_reg, panel_reg, &gc); |
| 3813 | 3813 |
|
| 3814 | 3814 |
if (!device_guid) |
| 3815 |
- msg (M_FATAL, "TAP-Win32 adapter '%s' not found", dev_node); |
|
| 3815 |
+ msg (M_FATAL, "TAP-Windows adapter '%s' not found", dev_node); |
|
| 3816 | 3816 |
|
| 3817 |
- /* Open Windows TAP-Win32 adapter */ |
|
| 3817 |
+ /* Open Windows TAP-Windows adapter */ |
|
| 3818 | 3818 |
openvpn_snprintf (device_path, sizeof(device_path), "%s%s%s", |
| 3819 | 3819 |
USERMODEDEVICEDIR, |
| 3820 | 3820 |
device_guid, |
| 3821 |
- TAPSUFFIX); |
|
| 3821 |
+ TAP_WIN_SUFFIX); |
|
| 3822 | 3822 |
|
| 3823 | 3823 |
hand = CreateFile ( |
| 3824 | 3824 |
device_path, |
| ... | ... |
@@ -3853,11 +3853,11 @@ tap_allow_nonadmin_access (const char *dev_node) |
| 3853 | 3853 |
if (!device_guid) |
| 3854 | 3854 |
break; |
| 3855 | 3855 |
|
| 3856 |
- /* Open Windows TAP-Win32 adapter */ |
|
| 3856 |
+ /* Open Windows TAP-Windows adapter */ |
|
| 3857 | 3857 |
openvpn_snprintf (device_path, sizeof(device_path), "%s%s%s", |
| 3858 | 3858 |
USERMODEDEVICEDIR, |
| 3859 | 3859 |
device_guid, |
| 3860 |
- TAPSUFFIX); |
|
| 3860 |
+ TAP_WIN_SUFFIX); |
|
| 3861 | 3861 |
|
| 3862 | 3862 |
hand = CreateFile ( |
| 3863 | 3863 |
device_path, |
| ... | ... |
@@ -3902,7 +3902,7 @@ dhcp_release_by_adapter_index(const DWORD adapter_index) |
| 3902 | 3902 |
ret = true; |
| 3903 | 3903 |
} |
| 3904 | 3904 |
else |
| 3905 |
- msg (M_WARN, "NOTE: Release of DHCP-assigned IP address lease on TAP-Win32 adapter failed: %s (code=%u)", |
|
| 3905 |
+ msg (M_WARN, "NOTE: Release of DHCP-assigned IP address lease on TAP-Windows adapter failed: %s (code=%u)", |
|
| 3906 | 3906 |
strerror_win32 (status, &gc), |
| 3907 | 3907 |
(unsigned int)status); |
| 3908 | 3908 |
} |
| ... | ... |
@@ -3936,7 +3936,7 @@ dhcp_renew_by_adapter_index (const DWORD adapter_index) |
| 3936 | 3936 |
ret = true; |
| 3937 | 3937 |
} |
| 3938 | 3938 |
else |
| 3939 |
- msg (M_WARN, "WARNING: Failed to renew DHCP IP address lease on TAP-Win32 adapter: %s (code=%u)", |
|
| 3939 |
+ msg (M_WARN, "WARNING: Failed to renew DHCP IP address lease on TAP-Windows adapter: %s (code=%u)", |
|
| 3940 | 3940 |
strerror_win32 (status, &gc), |
| 3941 | 3941 |
(unsigned int)status); |
| 3942 | 3942 |
} |
| ... | ... |
@@ -4281,7 +4281,7 @@ netsh_get_id (const char *dev_node, struct gc_arena *gc) |
| 4281 | 4281 |
struct buffer actual = alloc_buf_gc (256, gc); |
| 4282 | 4282 |
const char *guid; |
| 4283 | 4283 |
|
| 4284 |
- at_least_one_tap_win32 (tap_reg); |
|
| 4284 |
+ at_least_one_tap_win (tap_reg); |
|
| 4285 | 4285 |
|
| 4286 | 4286 |
if (dev_node) |
| 4287 | 4287 |
{
|
| ... | ... |
@@ -4291,7 +4291,7 @@ netsh_get_id (const char *dev_node, struct gc_arena *gc) |
| 4291 | 4291 |
{
|
| 4292 | 4292 |
guid = get_unspecified_device_guid (0, BPTR (&actual), BCAP (&actual), tap_reg, panel_reg, gc); |
| 4293 | 4293 |
|
| 4294 |
- if (get_unspecified_device_guid (1, NULL, 0, tap_reg, panel_reg, gc)) /* ambiguous if more than one TAP-Win32 adapter */ |
|
| 4294 |
+ if (get_unspecified_device_guid (1, NULL, 0, tap_reg, panel_reg, gc)) /* ambiguous if more than one TAP-Windows adapter */ |
|
| 4295 | 4295 |
guid = NULL; |
| 4296 | 4296 |
} |
| 4297 | 4297 |
|
| ... | ... |
@@ -4304,7 +4304,7 @@ netsh_get_id (const char *dev_node, struct gc_arena *gc) |
| 4304 | 4304 |
} |
| 4305 | 4305 |
|
| 4306 | 4306 |
/* |
| 4307 |
- * Called iteratively on TAP-Win32 wait-for-initialization polling loop |
|
| 4307 |
+ * Called iteratively on TAP-Windows wait-for-initialization polling loop |
|
| 4308 | 4308 |
*/ |
| 4309 | 4309 |
void |
| 4310 | 4310 |
tun_standby_init (struct tuntap *tt) |
| ... | ... |
@@ -4535,7 +4535,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4535 | 4535 |
const struct panel_reg *panel_reg = get_panel_reg (&gc); |
| 4536 | 4536 |
char actual_buffer[256]; |
| 4537 | 4537 |
|
| 4538 |
- at_least_one_tap_win32 (tap_reg); |
|
| 4538 |
+ at_least_one_tap_win (tap_reg); |
|
| 4539 | 4539 |
|
| 4540 | 4540 |
if (dev_node) |
| 4541 | 4541 |
{
|
| ... | ... |
@@ -4543,13 +4543,13 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4543 | 4543 |
device_guid = get_device_guid (dev_node, actual_buffer, sizeof (actual_buffer), tap_reg, panel_reg, &gc); |
| 4544 | 4544 |
|
| 4545 | 4545 |
if (!device_guid) |
| 4546 |
- msg (M_FATAL, "TAP-Win32 adapter '%s' not found", dev_node); |
|
| 4546 |
+ msg (M_FATAL, "TAP-Windows adapter '%s' not found", dev_node); |
|
| 4547 | 4547 |
|
| 4548 |
- /* Open Windows TAP-Win32 adapter */ |
|
| 4548 |
+ /* Open Windows TAP-Windows adapter */ |
|
| 4549 | 4549 |
openvpn_snprintf (device_path, sizeof(device_path), "%s%s%s", |
| 4550 | 4550 |
USERMODEDEVICEDIR, |
| 4551 | 4551 |
device_guid, |
| 4552 |
- TAPSUFFIX); |
|
| 4552 |
+ TAP_WIN_SUFFIX); |
|
| 4553 | 4553 |
|
| 4554 | 4554 |
tt->hand = CreateFile ( |
| 4555 | 4555 |
device_path, |
| ... | ... |
@@ -4579,13 +4579,13 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4579 | 4579 |
&gc); |
| 4580 | 4580 |
|
| 4581 | 4581 |
if (!device_guid) |
| 4582 |
- msg (M_FATAL, "All TAP-Win32 adapters on this system are currently in use."); |
|
| 4582 |
+ msg (M_FATAL, "All TAP-Windows adapters on this system are currently in use."); |
|
| 4583 | 4583 |
|
| 4584 |
- /* Open Windows TAP-Win32 adapter */ |
|
| 4584 |
+ /* Open Windows TAP-Windows adapter */ |
|
| 4585 | 4585 |
openvpn_snprintf (device_path, sizeof(device_path), "%s%s%s", |
| 4586 | 4586 |
USERMODEDEVICEDIR, |
| 4587 | 4587 |
device_guid, |
| 4588 |
- TAPSUFFIX); |
|
| 4588 |
+ TAP_WIN_SUFFIX); |
|
| 4589 | 4589 |
|
| 4590 | 4590 |
tt->hand = CreateFile ( |
| 4591 | 4591 |
device_path, |
| ... | ... |
@@ -4618,20 +4618,20 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4618 | 4618 |
{
|
| 4619 | 4619 |
ULONG info[3]; |
| 4620 | 4620 |
CLEAR (info); |
| 4621 |
- if (DeviceIoControl (tt->hand, TAP_IOCTL_GET_VERSION, |
|
| 4621 |
+ if (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_VERSION, |
|
| 4622 | 4622 |
&info, sizeof (info), |
| 4623 | 4623 |
&info, sizeof (info), &len, NULL)) |
| 4624 | 4624 |
{
|
| 4625 |
- msg (D_TUNTAP_INFO, "TAP-Win32 Driver Version %d.%d %s", |
|
| 4625 |
+ msg (D_TUNTAP_INFO, "TAP-Windows Driver Version %d.%d %s", |
|
| 4626 | 4626 |
(int) info[0], |
| 4627 | 4627 |
(int) info[1], |
| 4628 | 4628 |
(info[2] ? "(DEBUG)" : "")); |
| 4629 | 4629 |
|
| 4630 | 4630 |
} |
| 4631 |
- if (!(info[0] == TAP_WIN32_MIN_MAJOR && info[1] >= TAP_WIN32_MIN_MINOR)) |
|
| 4632 |
- msg (M_FATAL, "ERROR: This version of " PACKAGE_NAME " requires a TAP-Win32 driver that is at least version %d.%d -- If you recently upgraded your " PACKAGE_NAME " distribution, a reboot is probably required at this point to get Windows to see the new driver.", |
|
| 4633 |
- TAP_WIN32_MIN_MAJOR, |
|
| 4634 |
- TAP_WIN32_MIN_MINOR); |
|
| 4631 |
+ if (!(info[0] == TAP_WIN_MIN_MAJOR && info[1] >= TAP_WIN_MIN_MINOR)) |
|
| 4632 |
+ msg (M_FATAL, "ERROR: This version of " PACKAGE_NAME " requires a TAP-Windows driver that is at least version %d.%d -- If you recently upgraded your " PACKAGE_NAME " distribution, a reboot is probably required at this point to get Windows to see the new driver.", |
|
| 4633 |
+ TAP_WIN_MIN_MAJOR, |
|
| 4634 |
+ TAP_WIN_MIN_MINOR); |
|
| 4635 | 4635 |
|
| 4636 | 4636 |
/* usage of numeric constants is ugly, but this is really tied to |
| 4637 | 4637 |
* *this* version of the driver |
| ... | ... |
@@ -4655,17 +4655,17 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4655 | 4655 |
/* get driver MTU */ |
| 4656 | 4656 |
{
|
| 4657 | 4657 |
ULONG mtu; |
| 4658 |
- if (DeviceIoControl (tt->hand, TAP_IOCTL_GET_MTU, |
|
| 4658 |
+ if (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_MTU, |
|
| 4659 | 4659 |
&mtu, sizeof (mtu), |
| 4660 | 4660 |
&mtu, sizeof (mtu), &len, NULL)) |
| 4661 | 4661 |
{
|
| 4662 | 4662 |
tt->post_open_mtu = (int) mtu; |
| 4663 |
- msg (D_MTU_INFO, "TAP-Win32 MTU=%d", (int) mtu); |
|
| 4663 |
+ msg (D_MTU_INFO, "TAP-Windows MTU=%d", (int) mtu); |
|
| 4664 | 4664 |
} |
| 4665 | 4665 |
} |
| 4666 | 4666 |
|
| 4667 | 4667 |
/* |
| 4668 |
- * Preliminaries for setting TAP-Win32 adapter TCP/IP |
|
| 4668 |
+ * Preliminaries for setting TAP-Windows adapter TCP/IP |
|
| 4669 | 4669 |
* properties via --ip-win32 dynamic or --ip-win32 adaptive. |
| 4670 | 4670 |
*/ |
| 4671 | 4671 |
if (tt->did_ifconfig_setup) |
| ... | ... |
@@ -4718,11 +4718,11 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4718 | 4718 |
ep[1] = htonl (tt->local & tt->remote_netmask); |
| 4719 | 4719 |
ep[2] = htonl (tt->remote_netmask); |
| 4720 | 4720 |
|
| 4721 |
- status = DeviceIoControl (tt->hand, TAP_IOCTL_CONFIG_TUN, |
|
| 4721 |
+ status = DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_TUN, |
|
| 4722 | 4722 |
ep, sizeof (ep), |
| 4723 | 4723 |
ep, sizeof (ep), &len, NULL); |
| 4724 | 4724 |
|
| 4725 |
- msg (status ? M_INFO : M_FATAL, "Set TAP-Win32 TUN subnet mode network/local/netmask = %s/%s/%s [%s]", |
|
| 4725 |
+ msg (status ? M_INFO : M_FATAL, "Set TAP-Windows TUN subnet mode network/local/netmask = %s/%s/%s [%s]", |
|
| 4726 | 4726 |
print_in_addr_t (ep[1], IA_NET_ORDER, &gc), |
| 4727 | 4727 |
print_in_addr_t (ep[0], IA_NET_ORDER, &gc), |
| 4728 | 4728 |
print_in_addr_t (ep[2], IA_NET_ORDER, &gc), |
| ... | ... |
@@ -4734,14 +4734,14 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4734 | 4734 |
ep[0] = htonl (tt->local); |
| 4735 | 4735 |
ep[1] = htonl (tt->remote_netmask); |
| 4736 | 4736 |
|
| 4737 |
- if (!DeviceIoControl (tt->hand, TAP_IOCTL_CONFIG_POINT_TO_POINT, |
|
| 4737 |
+ if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT, |
|
| 4738 | 4738 |
ep, sizeof (ep), |
| 4739 | 4739 |
ep, sizeof (ep), &len, NULL)) |
| 4740 |
- msg (M_FATAL, "ERROR: The TAP-Win32 driver rejected a DeviceIoControl call to set Point-to-Point mode, which is required for --dev tun"); |
|
| 4740 |
+ msg (M_FATAL, "ERROR: The TAP-Windows driver rejected a DeviceIoControl call to set Point-to-Point mode, which is required for --dev tun"); |
|
| 4741 | 4741 |
} |
| 4742 | 4742 |
} |
| 4743 | 4743 |
|
| 4744 |
- /* should we tell the TAP-Win32 driver to masquerade as a DHCP server as a means |
|
| 4744 |
+ /* should we tell the TAP-Windows driver to masquerade as a DHCP server as a means |
|
| 4745 | 4745 |
of setting the adapter address? */ |
| 4746 | 4746 |
if (dhcp_masq) |
| 4747 | 4747 |
{
|
| ... | ... |
@@ -4776,12 +4776,12 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4776 | 4776 |
ASSERT (ep[3] > 0); |
| 4777 | 4777 |
|
| 4778 | 4778 |
#ifndef SIMULATE_DHCP_FAILED /* this code is disabled to simulate bad DHCP negotiation */ |
| 4779 |
- if (!DeviceIoControl (tt->hand, TAP_IOCTL_CONFIG_DHCP_MASQ, |
|
| 4779 |
+ if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_DHCP_MASQ, |
|
| 4780 | 4780 |
ep, sizeof (ep), |
| 4781 | 4781 |
ep, sizeof (ep), &len, NULL)) |
| 4782 |
- msg (M_FATAL, "ERROR: The TAP-Win32 driver rejected a DeviceIoControl call to set TAP_IOCTL_CONFIG_DHCP_MASQ mode"); |
|
| 4782 |
+ msg (M_FATAL, "ERROR: The TAP-Windows driver rejected a DeviceIoControl call to set TAP_WIN_IOCTL_CONFIG_DHCP_MASQ mode"); |
|
| 4783 | 4783 |
|
| 4784 |
- msg (M_INFO, "Notified TAP-Win32 driver to set a DHCP IP/netmask of %s/%s on interface %s [DHCP-serv: %s, lease-time: %d]", |
|
| 4784 |
+ msg (M_INFO, "Notified TAP-Windows driver to set a DHCP IP/netmask of %s/%s on interface %s [DHCP-serv: %s, lease-time: %d]", |
|
| 4785 | 4785 |
print_in_addr_t (tt->local, 0, &gc), |
| 4786 | 4786 |
print_in_addr_t (tt->adapter_netmask, 0, &gc), |
| 4787 | 4787 |
device_guid, |
| ... | ... |
@@ -4796,10 +4796,10 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4796 | 4796 |
if (build_dhcp_options_string (&buf, &tt->options)) |
| 4797 | 4797 |
{
|
| 4798 | 4798 |
msg (D_DHCP_OPT, "DHCP option string: %s", format_hex (BPTR (&buf), BLEN (&buf), 0, &gc)); |
| 4799 |
- if (!DeviceIoControl (tt->hand, TAP_IOCTL_CONFIG_DHCP_SET_OPT, |
|
| 4799 |
+ if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT, |
|
| 4800 | 4800 |
BPTR (&buf), BLEN (&buf), |
| 4801 | 4801 |
BPTR (&buf), BLEN (&buf), &len, NULL)) |
| 4802 |
- msg (M_FATAL, "ERROR: The TAP-Win32 driver rejected a TAP_IOCTL_CONFIG_DHCP_SET_OPT DeviceIoControl call"); |
|
| 4802 |
+ msg (M_FATAL, "ERROR: The TAP-Windows driver rejected a TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT DeviceIoControl call"); |
|
| 4803 | 4803 |
} |
| 4804 | 4804 |
else |
| 4805 | 4805 |
msg (M_WARN, "DHCP option string not set due to error"); |
| ... | ... |
@@ -4811,10 +4811,10 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4811 | 4811 |
/* set driver media status to 'connected' */ |
| 4812 | 4812 |
{
|
| 4813 | 4813 |
ULONG status = TRUE; |
| 4814 |
- if (!DeviceIoControl (tt->hand, TAP_IOCTL_SET_MEDIA_STATUS, |
|
| 4814 |
+ if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_SET_MEDIA_STATUS, |
|
| 4815 | 4815 |
&status, sizeof (status), |
| 4816 | 4816 |
&status, sizeof (status), &len, NULL)) |
| 4817 |
- msg (M_WARN, "WARNING: The TAP-Win32 driver rejected a TAP_IOCTL_SET_MEDIA_STATUS DeviceIoControl call."); |
|
| 4817 |
+ msg (M_WARN, "WARNING: The TAP-Windows driver rejected a TAP_WIN_IOCTL_SET_MEDIA_STATUS DeviceIoControl call."); |
|
| 4818 | 4818 |
} |
| 4819 | 4819 |
|
| 4820 | 4820 |
/* possible wait for adapter to come up */ |
| ... | ... |
@@ -4849,7 +4849,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4849 | 4849 |
} |
| 4850 | 4850 |
|
| 4851 | 4851 |
/* |
| 4852 |
- * If the TAP-Win32 driver is masquerading as a DHCP server |
|
| 4852 |
+ * If the TAP-Windows driver is masquerading as a DHCP server |
|
| 4853 | 4853 |
* make sure the TCP/IP properties for the adapter are |
| 4854 | 4854 |
* set correctly. |
| 4855 | 4855 |
*/ |
| ... | ... |
@@ -4857,7 +4857,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4857 | 4857 |
{
|
| 4858 | 4858 |
/* check dhcp enable status */ |
| 4859 | 4859 |
if (dhcp_status (index) == DHCP_STATUS_DISABLED) |
| 4860 |
- msg (M_WARN, "WARNING: You have selected '--ip-win32 dynamic', which will not work unless the TAP-Win32 TCP/IP properties are set to 'Obtain an IP address automatically'"); |
|
| 4860 |
+ msg (M_WARN, "WARNING: You have selected '--ip-win32 dynamic', which will not work unless the TAP-Windows TCP/IP properties are set to 'Obtain an IP address automatically'"); |
|
| 4861 | 4861 |
|
| 4862 | 4862 |
/* force an explicit DHCP lease renewal on TAP adapter? */ |
| 4863 | 4863 |
if (tt->options.dhcp_pre_release) |
| ... | ... |
@@ -4883,7 +4883,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4883 | 4883 |
|
| 4884 | 4884 |
/* check dhcp enable status */ |
| 4885 | 4885 |
if (dhcp_status (index) == DHCP_STATUS_DISABLED) |
| 4886 |
- msg (M_WARN, "NOTE: You have selected (explicitly or by default) '--ip-win32 ipapi', which has a better chance of working correctly if the TAP-Win32 TCP/IP properties are set to 'Obtain an IP address automatically'"); |
|
| 4886 |
+ msg (M_WARN, "NOTE: You have selected (explicitly or by default) '--ip-win32 ipapi', which has a better chance of working correctly if the TAP-Windows TCP/IP properties are set to 'Obtain an IP address automatically'"); |
|
| 4887 | 4887 |
|
| 4888 | 4888 |
/* delete previously added IP addresses which were not |
| 4889 | 4889 |
correctly deleted */ |
| ... | ... |
@@ -4917,13 +4917,13 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu |
| 4917 | 4917 |
} |
| 4918 | 4918 |
|
| 4919 | 4919 |
const char * |
| 4920 |
-tap_win32_getinfo (const struct tuntap *tt, struct gc_arena *gc) |
|
| 4920 |
+tap_win_getinfo (const struct tuntap *tt, struct gc_arena *gc) |
|
| 4921 | 4921 |
{
|
| 4922 | 4922 |
if (tt && tt->hand != NULL) |
| 4923 | 4923 |
{
|
| 4924 | 4924 |
struct buffer out = alloc_buf_gc (256, gc); |
| 4925 | 4925 |
DWORD len; |
| 4926 |
- if (DeviceIoControl (tt->hand, TAP_IOCTL_GET_INFO, |
|
| 4926 |
+ if (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_INFO, |
|
| 4927 | 4927 |
BSTR (&out), BCAP (&out), |
| 4928 | 4928 |
BSTR (&out), BCAP (&out), |
| 4929 | 4929 |
&len, NULL)) |
| ... | ... |
@@ -4941,12 +4941,12 @@ tun_show_debug (struct tuntap *tt) |
| 4941 | 4941 |
{
|
| 4942 | 4942 |
struct buffer out = alloc_buf (1024); |
| 4943 | 4943 |
DWORD len; |
| 4944 |
- while (DeviceIoControl (tt->hand, TAP_IOCTL_GET_LOG_LINE, |
|
| 4944 |
+ while (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_LOG_LINE, |
|
| 4945 | 4945 |
BSTR (&out), BCAP (&out), |
| 4946 | 4946 |
BSTR (&out), BCAP (&out), |
| 4947 | 4947 |
&len, NULL)) |
| 4948 | 4948 |
{
|
| 4949 |
- msg (D_TAP_WIN32_DEBUG, "TAP-Win32: %s", BSTR (&out)); |
|
| 4949 |
+ msg (D_TAP_WIN_DEBUG, "TAP-Windows: %s", BSTR (&out)); |
|
| 4950 | 4950 |
} |
| 4951 | 4951 |
free_buf (&out); |
| 4952 | 4952 |
} |
| ... | ... |
@@ -4986,7 +4986,7 @@ close_tun (struct tuntap *tt) |
| 4986 | 4986 |
DWORD status; |
| 4987 | 4987 |
if ((status = DeleteIPAddress (tt->ipapi_context)) != NO_ERROR) |
| 4988 | 4988 |
{
|
| 4989 |
- msg (M_WARN, "Warning: DeleteIPAddress[%u] failed on TAP-Win32 adapter, status=%u : %s", |
|
| 4989 |
+ msg (M_WARN, "Warning: DeleteIPAddress[%u] failed on TAP-Windows adapter, status=%u : %s", |
|
| 4990 | 4990 |
(unsigned int)tt->ipapi_context, |
| 4991 | 4991 |
(unsigned int)status, |
| 4992 | 4992 |
strerror_win32 (status, &gc)); |
| ... | ... |
@@ -4999,22 +4999,22 @@ close_tun (struct tuntap *tt) |
| 4999 | 4999 |
|
| 5000 | 5000 |
if (tt->hand != NULL) |
| 5001 | 5001 |
{
|
| 5002 |
- dmsg (D_WIN32_IO_LOW, "Attempting CancelIO on TAP-Win32 adapter"); |
|
| 5002 |
+ dmsg (D_WIN32_IO_LOW, "Attempting CancelIO on TAP-Windows adapter"); |
|
| 5003 | 5003 |
if (!CancelIo (tt->hand)) |
| 5004 |
- msg (M_WARN | M_ERRNO, "Warning: CancelIO failed on TAP-Win32 adapter"); |
|
| 5004 |
+ msg (M_WARN | M_ERRNO, "Warning: CancelIO failed on TAP-Windows adapter"); |
|
| 5005 | 5005 |
} |
| 5006 | 5006 |
|
| 5007 |
- dmsg (D_WIN32_IO_LOW, "Attempting close of overlapped read event on TAP-Win32 adapter"); |
|
| 5007 |
+ dmsg (D_WIN32_IO_LOW, "Attempting close of overlapped read event on TAP-Windows adapter"); |
|
| 5008 | 5008 |
overlapped_io_close (&tt->reads); |
| 5009 | 5009 |
|
| 5010 |
- dmsg (D_WIN32_IO_LOW, "Attempting close of overlapped write event on TAP-Win32 adapter"); |
|
| 5010 |
+ dmsg (D_WIN32_IO_LOW, "Attempting close of overlapped write event on TAP-Windows adapter"); |
|
| 5011 | 5011 |
overlapped_io_close (&tt->writes); |
| 5012 | 5012 |
|
| 5013 | 5013 |
if (tt->hand != NULL) |
| 5014 | 5014 |
{
|
| 5015 |
- dmsg (D_WIN32_IO_LOW, "Attempting CloseHandle on TAP-Win32 adapter"); |
|
| 5015 |
+ dmsg (D_WIN32_IO_LOW, "Attempting CloseHandle on TAP-Windows adapter"); |
|
| 5016 | 5016 |
if (!CloseHandle (tt->hand)) |
| 5017 |
- msg (M_WARN | M_ERRNO, "Warning: CloseHandle failed on TAP-Win32 adapter"); |
|
| 5017 |
+ msg (M_WARN | M_ERRNO, "Warning: CloseHandle failed on TAP-Windows adapter"); |
|
| 5018 | 5018 |
} |
| 5019 | 5019 |
|
| 5020 | 5020 |
if (tt->actual_name) |
| ... | ... |
@@ -164,7 +164,7 @@ struct tuntap |
| 164 | 164 |
ULONG ipapi_instance; |
| 165 | 165 |
in_addr_t adapter_netmask; |
| 166 | 166 |
|
| 167 |
- /* Windows adapter index for TAP-Win32 adapter, |
|
| 167 |
+ /* Windows adapter index for TAP-Windows adapter, |
|
| 168 | 168 |
~0 if undefined */ |
| 169 | 169 |
DWORD adapter_index; |
| 170 | 170 |
|
| ... | ... |
@@ -333,13 +333,13 @@ DWORD adapter_index_of_ip (const IP_ADAPTER_INFO *list, |
| 333 | 333 |
int *count, |
| 334 | 334 |
in_addr_t *netmask); |
| 335 | 335 |
|
| 336 |
-void show_tap_win32_adapters (int msglev, int warnlev); |
|
| 336 |
+void show_tap_win_adapters (int msglev, int warnlev); |
|
| 337 | 337 |
void show_adapters (int msglev); |
| 338 | 338 |
|
| 339 | 339 |
void tap_allow_nonadmin_access (const char *dev_node); |
| 340 | 340 |
|
| 341 | 341 |
void show_valid_win32_tun_subnets (void); |
| 342 |
-const char *tap_win32_getinfo (const struct tuntap *tt, struct gc_arena *gc); |
|
| 342 |
+const char *tap_win_getinfo (const struct tuntap *tt, struct gc_arena *gc); |
|
| 343 | 343 |
void tun_show_debug (struct tuntap *tt); |
| 344 | 344 |
|
| 345 | 345 |
bool dhcp_release_by_adapter_index(const DWORD adapter_index); |
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 | 1 |
dnl define the OpenVPN version |
| 2 | 2 |
define(PRODUCT_VERSION,[2.3_alpha1]) |
| 3 | 3 |
dnl define the TAP version |
| 4 |
-define(PRODUCT_TAP_ID,[tap0901]) |
|
| 5 |
-define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9]) |
|
| 6 |
-define(PRODUCT_TAP_WIN32_MIN_MINOR,[9]) |
|
| 4 |
+define(PRODUCT_TAP_WIN_COMPONENT_ID,[tap0901]) |
|
| 5 |
+define(PRODUCT_TAP_WIN_MIN_MAJOR,[9]) |
|
| 6 |
+define(PRODUCT_TAP_WIN_MIN_MINOR,[9]) |
| ... | ... |
@@ -6,9 +6,9 @@ |
| 6 | 6 |
* |
| 7 | 7 |
* The TAP-Win32 version number is defined in tap-win32/SOURCES |
| 8 | 8 |
*/ |
| 9 |
-#define TAP_COMPONENT_ID "@PRODUCT_TAP_ID@" |
|
| 10 |
-#define TAP_WIN32_MIN_MAJOR @PRODUCT_TAP_WIN32_MIN_MAJOR@ |
|
| 11 |
-#define TAP_WIN32_MIN_MINOR @PRODUCT_TAP_WIN32_MIN_MINOR@ |
|
| 9 |
+#define TAP_WIN_COMPONENT_ID "@PRODUCT_TAP_WIN_COMPONENT_ID@" |
|
| 10 |
+#define TAP_WIN_MIN_MAJOR @PRODUCT_TAP_WIN_MIN_MAJOR@ |
|
| 11 |
+#define TAP_WIN_MIN_MINOR @PRODUCT_TAP_WIN_MIN_MINOR@ |
|
| 12 | 12 |
|
| 13 | 13 |
/* Friendly name for TAP driver */ |
| 14 | 14 |
#define PRODUCT_TAP_DEVICE_DESCRIPTION "@PRODUCT_TAP_DEVICE_DESCRIPTION@" |
| ... | ... |
@@ -44,7 +44,7 @@ SetCompressor lzma |
| 44 | 44 |
|
| 45 | 45 |
!define VERSION "${PRODUCT_VERSION}${DBG_POSTFIX}"
|
| 46 | 46 |
|
| 47 |
-!define TAP "${PRODUCT_TAP_ID}"
|
|
| 47 |
+!define TAP "${PRODUCT_TAP_WIN_COMPONENT_ID}"
|
|
| 48 | 48 |
!define TAPDRV "${TAP}.sys"
|
| 49 | 49 |
|
| 50 | 50 |
; Default service settings |
| ... | ... |
@@ -409,7 +409,7 @@ Section "TAP Virtual Ethernet Adapter" SecTAP |
| 409 | 409 |
File "${GEN}\amd64\${TAPDRV}"
|
| 410 | 410 |
|
| 411 | 411 |
# Don't try to install TAP driver signature if it does not exist. |
| 412 |
- File /nonfatal "${GEN}\amd64\${PRODUCT_TAP_ID}.cat"
|
|
| 412 |
+ File /nonfatal "${GEN}\amd64\${PRODUCT_TAP_COMPONENT_ID}.cat"
|
|
| 413 | 413 |
|
| 414 | 414 |
goto tapend |
| 415 | 415 |
|
| ... | ... |
@@ -425,7 +425,7 @@ tap-32bit: |
| 425 | 425 |
File "${GEN}\i386\${TAPDRV}"
|
| 426 | 426 |
|
| 427 | 427 |
# Don't try to install TAP driver signature if it does not exist. |
| 428 |
- File /nonfatal "${GEN}\i386\${PRODUCT_TAP_ID}.cat"
|
|
| 428 |
+ File /nonfatal "${GEN}\i386\${PRODUCT_TAP_COMPONENT_ID}.cat"
|
|
| 429 | 429 |
|
| 430 | 430 |
tapend: |
| 431 | 431 |
|
| ... | ... |
@@ -778,7 +778,7 @@ Section "Uninstall" |
| 778 | 778 |
Delete "$INSTDIR\log\README.txt" |
| 779 | 779 |
|
| 780 | 780 |
Delete "$INSTDIR\driver\OemWin2k.inf" |
| 781 |
- Delete "$INSTDIR\driver\${PRODUCT_TAP_ID}.cat"
|
|
| 781 |
+ Delete "$INSTDIR\driver\${PRODUCT_TAP_COMPONENT_ID}.cat"
|
|
| 782 | 782 |
Delete "$INSTDIR\driver\${TAPDRV}"
|
| 783 | 783 |
|
| 784 | 784 |
Delete "$INSTDIR\bin\openssl.exe" |