Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6CCBF.7B7F047B" Date: Thu, 31 Aug 2006 13:37:00 +0800 Message-ID: From: "Wang, Daming" Subject: [Openvpn-devel] a question about how to program tap_win32 driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net This is a multi-part message in MIME format. ------_=_NextPart_001_01C6CCBF.7B7F047B Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 hello: =20 I am trying to write a simple program which functions like this: first create a socket and bind the socket to the virtual tap_win32 driver provided by openVPN, the tap ip was setted as "10.0.3.1". So if I use the socket to send out packet, the packet will be transmitted to the user space,right?=20 And then, I use a program which get a handle associated with the tap driver through "createfile" in tun.c and use "readfile" (in tun.c) trying to get the packet ,but the readfile always return failure(err=3D31).=20 =20 My question is: did I understand the usage procedure correctly? If so, is the method used in my program correctly? If not,can you give me some advice? thank you very much! =20 best wishes! michael,wang =20 =20 ------_=_NextPart_001_01C6CCBF.7B7F047B Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

hello:
 
I am trying to write a simple program which functions like this:
first create a socket and bind the socket to the virtual tap_win32 driv=
er provided
by openVPN, the tap ip was setted as "10.0.3.1". So if I use =
the socket to send
out packet, the packet will be transmitted to the user space,right? 
And then, I use a program which get a handle associated with the tap dr=
iver
through "createfile" in tun.c and use "readfile" (i=
n tun.c) trying to get the
packet ,but the readfile always return failure(err=3D31). 
 
My question is: did I understand the usage procedure correctly? If so, =
is the
method used in my program correctly? If not,can you give me some advice=
? thank
you very much!
 
best wishes!
michael,wang

 

 

------_=_NextPart_001_01C6CCBF.7B7F047B--