Skip to contentSkip to conversation

Renaming TAP driver (Windows)

Openvpn-devel Etienne Le Sueur 1 participant 1 message Nov 2, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I am working on a client for openvpn, and have compiled my own version of the tap-win32 driver with a different name, so that if people uninstall an existing version of openvpn, my driver is not uninstalled along with the original tap0801 driver.

I have followed the instructions in the OemWin2k.inf file:

; (1) Rename all tapXXXX instances in this file to
; something different (use at least 5 characters
; for this name!)
; (2) Change the "!define TAP" definition in openvpn.nsi
; to match what you changed tapXXXX to.
; (3) Change TARGETNAME in SOURCES to match what you
; changed tapXXXX to.
; (4) Change TAP_COMPONENT_ID in common.h to match what
; you changed tapXXXX to.
; (5) Change SZDEPENDENCIES in service.h to match what
; you changed tapXXXX to.
; (6) Change DeviceDescription and Provider strings. ; (7) Change PRODUCT_STRING in constants.h to what you
; set DeviceDescription to.

However for (5) in openvpn-2.1beta_rc1 there is no service.h file.

The driver installs fine and is present in the registry, however when I do openvpn.exe -show-adapters nothing shows up, and upon connection, openvpn complains that it can find no TAP drivers, even if I specify the connection name or guid with -dev-node.

Does OpenVPN need to be recompiled with some alterations to pick up the different name?

Thanks
Etienne Le Sueur
http://www.jet-age.co.nz