Closed oblomingo closed 2 months ago
Interesting, I cannot reproduce this.
c:\Program Files\OpenVPN\bin>tapctl.exe create --hwid ovpn-dco --name "MyDCO"
{1160607E-64CC-4AF2-B963-5BE423BCD2E5}
c:\Program Files\OpenVPN\bin>tapctl.exe create --hwid ovpn-dco --name "My DCO With Space"
{3CFBF630-D210-4CC7-9EEE-A0B6D59DEABB}
c:\Program Files\OpenVPN\bin>tapctl.exe list
{D7F5936F-D623-4EC7-BDAB-BD6E736E39E6} OpenVPN Wintun
{0A680EC7-27E6-418B-9B3F-E5694418BD01} Local Area Connection
{52292200-D7C3-4003-8836-410FCD03A0F2} OpenVPN TAP-Windows6
{3462ADE4-545A-44E2-972D-9800EDDA14FC} OpenVPN Data Channel Offload
{DA06723C-4181-4634-B7C0-967314E68B00} OpenVPN Data Channel Offload #1
{1160607E-64CC-4AF2-B963-5BE423BCD2E5} MyDCO
{3CFBF630-D210-4CC7-9EEE-A0B6D59DEABB} My DCO With Space
Note that if you just run c:\Program Files\OpenVPN\bin>tapctl.exe create --hwid ovpn-dco
you are supposed to get an adapter named OpenVPN Data Channel Offload
or OpenVPN Data Channel Offload #1
, OpenVPN Data Channel Offload #2
and so on.
Could you try to rename the adapter manually with netsh
call? This is basically what tap_set_adapter_name
is doing under the hood.
It reproduces in a Windows sandbox, but works as expected on my computer. In case I would like to use netsh it would requires an additional actions, like:
tapctl.exe create --hwid ovpn-dco
command line result.netsh interface set interface name="Current name" newname="Custom name"
And since we don't know the root case of the issue, the result may be the same. Anyway, thank for the help. Probably, netsh renaming can be implemented as fallback action (plan B) when tapctl fails on renaming.
I would really like to fix it but I need to reproduce it first. Would you be willing to try if I'll provide a tapctl version with extended logging?
Sure, please provide a link to the updated version and will try.
@lstipakov any updates?
Describe the bug tapctl.exe fails on creating adapter and shows an error:
However C:\Windows\INF\setupapi.dev.log content doesn't have error message:
The command actually creates an adapter, but fails to rename it:
To Reproduce Add OpenVPN DCO driver merged module (https://github.com/OpenVPN/ovpn-dco-win/releases/download/1.1.1/ovpn-dco-amd64.msm) to a installer. Install an app with OpenVPN DCO driver merged module to Windows 11 (22621.3447) After installation ensure that OpenVPN DCO driver is installed successfully. After the installation process, run a command line "tapctl.exe create --hwid ovpn-dco --name "Custom name"" The command line fails and shows the error message:
Expected behavior The command line creates a device with a defined name.
Version information (please complete the following information):