Closed sgstair closed 5 years ago
The code looks fairly straightforward. So, ACK, and I'll proceed to merge.
I'm missing a registry-for-dummies comment or commit note where "the magic registry key" can be found - it's called "TapDiag" and needs to have a a value "!= 0", but where would I find it?
the TapDiag registry key is REG_DWORD and lives in HKLM:SYSTEM\CurrentControlSet\Services\tap0901 (the driver's registry path) - the tapdiag tool configures it and so is an okayish reference.
HLK tests require two things that are not supported in OpenVPN currently.
To support these, when enabled by a registry key, a "TapDiag" device is created alongside the "Tap" device. This can be opened while OpenVPN is using the main tap device, and allows a side application to reach in and send some specific IOCTLs to modify the device state.
A hacky side tool has been written to serve these purposes and is available here https://github.com/sgstair/tapdiag