From: Lev Stipakov Date: Wed, 21 Apr 2021 08:00:16 +0000 (+0300) Subject: tapctl: support for ovpn-dco Windows driver X-Git-Tag: v2.6_beta1~530 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e25f9792fc955ef4e333afb5259b3f669f62355;p=thirdparty%2Fopenvpn.git tapctl: support for ovpn-dco Windows driver Make tapctl aware of ovpn-dco. Signed-off-by: Lev Stipakov Acked-by: Selva Nair Message-Id: <20210421080016.110-1-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22165.html Signed-off-by: Gert Doering --- diff --git a/src/tapctl/main.c b/src/tapctl/main.c index d5bc72909..3350bf1fb 100644 --- a/src/tapctl/main.c +++ b/src/tapctl/main.c @@ -81,9 +81,9 @@ static const TCHAR usage_message_create[] = TEXT(" specified, a default adapter name is chosen by Windows. \n") TEXT(" Note: This name can also be specified as OpenVPN's --dev-node \n") TEXT(" option. \n") - TEXT("--hwid Adapter hardware ID. Default value is root\\tap0901, which \n") - TEXT(" describes tap-windows6 driver. To work with wintun driver, \n") - TEXT(" specify 'wintun'. \n") + TEXT("--hwid Adapter hardware ID. Default value is root\\tap0901, which \n") + TEXT(" describes tap-windows6 driver. To work with wintun or ovpn-dco \n") + TEXT(" driver, specify 'wintun' or 'ovpn-dco'. \n") TEXT("\n") TEXT("Output:\n") TEXT("\n") @@ -101,8 +101,8 @@ static const TCHAR usage_message_list[] = TEXT("\n") TEXT("Options:\n") TEXT("\n") - TEXT("--hwid Adapter hardware ID. By default, root\\tap0901, tap0901 and \n") - TEXT(" wintun adapters are listed. Use this switch to limit the list. \n") + TEXT("--hwid Adapter hardware ID. By default, root\\tap0901, tap0901, wintun and \n") + TEXT(" ovpn-dco adapters are listed. Use this switch to limit the list.\n") TEXT("\n") TEXT("Output:\n") TEXT("\n") @@ -275,7 +275,8 @@ create_delete_adapter: TCHAR szzHwId[0x100] = TEXT("root\\") TEXT(TAP_WIN_COMPONENT_ID) TEXT("\0") TEXT(TAP_WIN_COMPONENT_ID) TEXT("\0") - TEXT("Wintun\0"); + TEXT("Wintun\0") + TEXT("ovpn-dco\0"); /* Parse options. */ for (int i = 2; i < argc; i++)