MIME-Version: 1.0 Date: Mon, 8 Jun 2009 18:38:23 +0200 Message-ID: <2ece24860906080938l79bf67av8aa5d6591d334c0a@...278...> From: jonathan openvpn Content-Type: multipart/alternative; boundary=001636e91010ecaee6046bd8def4 Subject: [Openvpn-devel] Cannot find TAP adapter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net --001636e91010ecaee6046bd8def4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello. I'm triying to execute a Windows CE port of OpenVPN in a custom hardware. First of all, let me say that I cannot use the connection manager due to the plattform i am using. I've been succesfull on open the socket and retrieve initial information from the OpenVPN server. I also have added a TAP interface to the Windows CE registry via the "AddTAPAdapterRegistration" function in "taputil.cpp". My problem comes when it's time to open the just registered TUN adapter. When it searches for the adapters on the device by the "GetAdaptersInfo" function, the TUN adapter is not present. Only the physical ethernet interface is present. I've compared the resgistry entries with a pocket PC running an OpenVPN client and they are identical! I've searched in internet looking for someone with a similar problem but i have found nothing. Have you any idea? What are the requirements for an adapter to be found by the "GetAdaptersInfo" function? Here are my registry entries: [HKEY_LOCAL_MACHINE\Comm\TAP Device] "ImagePath"="tap-ce.dll" "Group"="NDIS" "DisplayName"="TAP Virtual Ethernet Device" [HKEY_LOCAL_MACHINE\Comm\TAP Device\Linkage] "Route"=hex(7):\ 54,41,50,20,44,65,76,69,63,65,20,31,00,54,41,50,20,44,65,76,69,63,65,20,32,\ 00,00 [HKEY_LOCAL_MACHINE\Comm\TAP Device 1] "ImagePath"="tap-ce.dll" "Group"="NDIS" "DisplayName"="TAP1: Virtual Ethernet Device" [HKEY_LOCAL_MACHINE\Comm\TAP Device 1\Parms] "StreamIndex"=dword:00000001 "StreamName"="TAP" "BusType"=dword:00000000 "BusNumber"=dword:00000000 Another doubt. In the tun.c file, in function "do_ifconfig", there is no entry for WIN32 or WIN_CE, instead of this it is an "elif 0" entry. Because of this, in WIN_CE systems no ifconfig is done. Isn't it necessary? Thank you very much. Jonathan. --001636e91010ecaee6046bd8def4 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hello.

I'm triying to execute a Windows CE port of OpenVPN in a = custom hardware.

First of all, let me say that I cannot use the conn= ection manager due to the plattform i am using.

I've been succes= full on open the socket and retrieve initial information from the OpenVPN s= erver. I also have added a TAP interface to the Windows CE registry via the= "AddTAPAdapterRegistration" function in "taputil.cpp".=

My problem comes when it's time to open the just registered TUN ada= pter. When it searches for the adapters on the device by the "GetAdapt= ersInfo" function, the TUN adapter is not present. Only the physical e= thernet interface is present.
I've compared the resgistry entries with a pocket PC running an OpenVPN= client and they are identical! I've searched in internet looking for s= omeone with a similar problem but i have found nothing. Have you any idea?<= br> What are the requirements for an adapter to be found by the "GetAdapte= rsInfo" function?

Here are my registry entries:

[HKEY_LO= CAL_MACHINE\Comm\TAP Device]
"ImagePath"=3D"tap-ce.dll&qu= ot;
"Group"=3D"NDIS"
"DisplayName"=3D"TAP= Virtual Ethernet Device"

[HKEY_LOCAL_MACHINE\Comm\TAP Device\L= inkage]
"Route"=3Dhex(7):\
=A0=A0=A0=A0=A0 54,41,50,20,44,6= 5,76,69,63,65,20,31,00,54,41,50,20,44,65,76,69,63,65,20,32,\
=A0=A0=A0=A0=A0 00,00

[HKEY_LOCAL_MACHINE\Comm\TAP Device 1]
&quo= t;ImagePath"=3D"tap-ce.dll"
"Group"=3D"NDI= S"
"DisplayName"=3D"TAP1: Virtual Ethernet Device&qu= ot;

[HKEY_LOCAL_MACHINE\Comm\TAP Device 1\Parms]
"StreamIndex"=3Ddword:00000001
"StreamName"=3D"= TAP"
"BusType"=3Ddword:00000000
"BusNumber"= =3Ddword:00000000



Another doubt.
In the tun.c file, in f= unction "do_ifconfig", there is no entry for WIN32 or WIN_CE, ins= tead of this it is an "elif 0" entry. Because of this, in WIN_CE = systems no ifconfig is done. Isn't it necessary?

Thank you very much.

Jonathan.
--001636e91010ecaee6046bd8def4--